This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Failure with fork()
- From: Arjen Markus <arjen dot markus895 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 27 Jun 2013 11:35:51 +0200
- Subject: Failure with fork()
Hello,
the bug I am reporting here on behalf of Alan Irwin surfaced in the
combination wine and Cygwin (Alan summarised it here:
http://www.winehq.org/pipermail/wine-devel/2013-June/100328.html). It
has to do with the way Cygwin handles forks.
The bug can be illustrated with this small program:
int main(void) {
while(!fork());
return 0;
}
It is meant to enable infinite forking, but on Cygwin it immediately
stops. I tried
it on both Cygwin (not via wine but simply Windows 7) and Linux:
- On Linux the program continues without any problem
- On Cygwin it stops immediately with an error message that the child process
terminated unexpectedly with some weird return code.
Can anyone shed light on this? This bug is a showstopper for the
combination wine
and Cygwin.
Regards,
Arjen
--
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