Quoting Mike Pomraning (m...@pilcrow.madison.wi.us):

> > And i still don't understand why mixing threads+fork is "not smart". ;)
> Mixing the two makes it easy to introduce damning error.
> 
> Here's someone who learned it the hard way:
> http://rachelbythebay.com/w/2011/06/07/forked/
> 
> Here are some caveats on forking and program state:
> http://pubs.opengroup.org/onlinepubs/009696799/functions/pthread_atfork.html#tag_03_486_08
> 
> Here's an acknowledgement that the standards folks didn't get all the pesky
> semantics quite right:
> https://collaboration.opengroup.org/external/pasc.org/interpretations/unofficial/db/p1003.1c/pasc-1003.1c-37.html

Thanks. This was insightful. It's hard to find these links using Google.
All you find is people experiencing deadlocks and other problems. ;)

-Sndr.
-- 
| Today is the first day of the rest of your life
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2

Reply via email to