Subj : Re: Linux - waitpid portability To : comp.programming.threads From : Frank Cusack Date : Sun Feb 06 2005 10:05 pm On 4 Feb 2005 06:32:43 GMT ptjm@interlog.com (Patrick TJ McPhee) wrote: > In article , > wrote: > > % I searched for a solution, and understand that in Linux, the thread > % which fork()ed the process must reap the process status using > % waitpid(). This means a major change in the design. Could anybody > % suggest a way to monitor processes created by other threads in Linux, > % in a multithreaded application described above? > > Do you need to support all versions of Linux? Versions which > support NPTL (the new posix threads library) won't have this problem. > > If you do need to support older versions, you pretty much have > to reap the process status from the thread that started the > child process. How about having the child process write its exit status to a pipe being read from the reaper thread? /fc .