linux - when parent process is killed by 'kill -9', how to terminate child processes -
this question has answer here:
kill -9
send sigkill
signal parent process. sigkill
can not caught. how parent process terminate child processes?
the parent, once killed via sigkill, stop existing , cannot send signals child processes more. child process have monitor parent process itself. when parent gets killed, ppid changes 1 - might helpful client act on parent being killed. "ensure child process closed parent process" not possible parents process - that's nature of sigkill. however, if feel brave can hack source , redefine sigkill else, wouldn't recommend :)
Comments
Post a Comment