阅读背景:

如何使子进程在父进程退出后死亡?

来源:互联网 

Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure or anything else) I want the child process to die. How to do that correctly?Suppose I have a process which spawns exactly o




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

分享到: