Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for <bash.exe> errno 9 bash: fork: Bad file descriptor

litter@null.net litter@null.net
Wed Sep 23 07:52:00 GMT 2015


Hi all,

On a Windows XP 32 bit machine with latest Cygwin installed
(CYGWIN_NT-5.1 <machine> 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin)
I frequently encounter errors which break bash while loops, making it practically unusable

e.g.
cat some-file | while read i;do grep text $i;done

results in
2 [main] bash 1972 fork: child -1 - CreateProcessW failed for '<cygwin install path>\bin\bash.exe', errno 9
bash: fork: Bad file descriptor

The error is unpredictable, in a next run everything can run fine again.

I already checked for some common errors, but could not find anything.

Any help is appreciated.

Thanks,
Paul

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list