This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: crash if fork(2) from another thread
> I think this is not allowed in here. You can only do async-signal-safe
stuff
> in the child. IO is AFAIK not in that category. Basically, the only thing
you
> can safely do in the child process is to call exec().
Thank you for reply. I found similar info in MacOSX doc. (in CAVEATS)
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/fork.2.html
I encountered this crash while investigating python's
trunk/Lib/test/test_threading.py
ThreadJoinOnShutdown (test_3_join_in_forked_from_thread) which hangs on
cygwin.
It's calling thread stuff and IO on child process, maybe it's not good
practice...
--
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/