阅读背景:

Python多处理 - 捕获信号以重新启动子进程或关闭父进程

来源:互联网 

I am using the multiprocessing library to spawn two child processes. I would like to ensure that as long as the parent process is alive, if the child processes die (receive a SIGKILL or SIGTERM), that they are restarted automatically. On the other hand, if the parent process receives a SIGTERM/SIGINT, I want it to terminate all child processes then exit.I am using the multiprocessing library to spawn




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

分享到: