Subj : Re: pthreads and fork To : comp.programming.threads From : David Schwartz Date : Sat Feb 19 2005 01:48 pm "Alexander Terekhov" wrote in message news:421794E5.685F5F3C@web.de... > SUSv3 says: > > --- > A process shall be created with a single thread. If a multi-threaded > process calls fork(), the new process shall contain a replica of the > calling thread and its entire address space, possibly including the > states of mutexes and other resources. Consequently, to avoid errors, > the child process may only execute async-signal-safe operations until > such time as one of the exec functions is called. > --- > > "To avoid errors" doesn't mean "it clearly outlaws it", oder? ;-) The rationale does not modify the rule. If I say, "to keep you safe, you may not speed", it doesn't mean you can speed where you think it's safe. The rule removes your authority to judge whether or not speeding is safe. DS .