crash if fork(2) from another thread
Hirokazu Yamamoto
ocean-city@m2.ccsnet.ne.jp
Mon Sep 29 16:49:00 GMT 2008
>Your test case worked fine for me with Cygwin 1.7.x. I don't have a
>copy of 1.5.x handy to test.
> >> I don't see any reason why this shouldn't be allowed. You should
> >> be able to do anything you want in a child process.
> >I do not think that is true. As per
> ><http://www.opengroup.org/onlinepubs/009695399/functions/fork.html>,
> >RATIONALE, the penultimate paragraph, it is basically undefined
behaviour.
>
> I wrote the current version of cygwin's fork.
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: application/octet-stream
Size: 1022 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080929/ffc6dc06/attachment.obj>
-------------- next part --------------
--
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