Operating System - Tru64 Unix
1830233 Members
1912 Online
109999 Solutions
New Discussion

process disappears on call to waitpid

 
Dubost_2
Advisor

process disappears on call to waitpid

I have a process that forks many children. At the end of the process, I want to stop the children.

So in my father process I have a SIGTERM handler. I send SIGTERM to the process. In response, in the SIGTERM handler, the process sends SIGTERM to its children processes. Then it uses waitpid to wait for the end of the children.

Unfortunately, on this call to waitpid the process disappears. I can't find why. All signals are blocked. Perhaps it receives a kill -9 but who sends it ? I can't figure out what is happening.

Has anyone an idea for what my process should disappear ?