When a parent process is killed by “kill -9”, will subprocess also be killed?

前端 未结 5 1206
情书的邮戳
情书的邮戳 2021-02-01 05:38

One of my colleague told me this morning, when he killed supervisord by \"kill -9\", the subprocesses of supervisord is not killed.

He is quite sure about that, but I

5条回答
  •  佛祖请我去吃肉
    2021-02-01 06:18

    You just need to know which process or service you wanna kill. In my case httpd is.

    killall -9 httpd
    

    It will kill all the child processes of httpd.

提交回复
热议问题