This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for <bash.exe> errno 9 bash: fork: Bad file descriptor
- From: litter at null dot net
- To: cygwin at cygwin dot com
- Date: Wed, 23 Sep 2015 09:52:35 +0200
- Subject: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for <bash.exe> errno 9 bash: fork: Bad file descriptor
- Authentication-results: sourceware.org; auth=none
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