Subj : Re: Linux - waitpid portability To : comp.programming.threads From : Paul Pluzhnikov Date : Thu Feb 03 2005 10:28 pm sreenidishc@gmail.com writes: > The main process consists of five threads. Any of the four threads > could fork the child processes. Note that writing a correct program that fork()s after any threads have been created is *extremely* tricky. If you make a slightest mistake, your program will deadlock sooner or later, and you'll have really hard time reproducing this bug. > But On Linux, this design is not working because, it considers > each thread as a distinct process. LinuxThreads does; NPTL doesn't. > Any hint/links to solution would be of great help to me. Insist on NPTL -- it is available on all recent Linux distros. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. .