Subj : Re: Problem with system() calls in a multithreaded program on HPUX 11 To : comp.programming.threads,comp.sys.hp.hpux From : ptjm Date : Wed Feb 16 2005 06:38 am In article <5bf55c06.0502132309.4dccb49a@posting.google.com>, Mahesh Kumar wrote: [...] % if (waitpid(pid, &status, 0) == -1) { If the implementation of waitpid depends on SIGCHLD being delivered to the waiting thread, then you could have problems because the signal could be delivered to any thread. I'm not sure if this is what's happening here, but it's worth considering. % said number of threads is not consistent.) The only difference being % that there were no processes this time. That suggests all the waits completed. Curious. -- Patrick TJ McPhee North York Canada ptjm@interlog.com .