阅读背景:

如何检测Linux上的失效进程?

来源:互联网 

I have a parent and a child process written in C language. Somewhere in the parent process HUP signal is sent to the child. I want my parent process to detect if the child is dead. But when I send SIGHUP, the child process becomes a zombie. How can I detect if the child is a zombie in the parent process? I try the code below, but it doesn't return me the desired result since the child process is still there but it is defunct.I have a parent and a child process written in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: