crash if fork(2) from another thread

Hirokazu Yamamoto ocean-city@m2.ccsnet.ne.jp
Tue Sep 30 14:27:00 GMT 2008


>>I also confirmed previous code worked fine with Cygwin 1.7.
> >>But attached code hangs on Cygwin 1.7. (Actually this is what
> >>test_3_join_in_forked_from_thread is doing)
> >
> >I can duplicate this.  I'll investigate it as I have time.
>
> It should be fixed in the latest snapshot.

Thanks, I confirmed the problem was fixed on snapshot.
test_3_join_in_forked_from_thread doesn't hang now.

The test still fails, but this is because fork() copies only calling thread,
not main thread which will call fflush(stdout) on program termination.
This is allowed in POSIX, so expected behavior.


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



More information about the Cygwin mailing list