Subj : Re: pthreads and fork To : comp.programming.threads From : Alexander Terekhov Date : Sat Feb 19 2005 08:35 pm Torbjorn Lindgren wrote: [...] > (copied from SUSv2, but SUSv3 appears to have the exact same wording). > > So it clearly outlaws it, no if or but. 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? ;-) regards, alexander. P.S. Oh La La DRB. ;-) ;-) .