linux - when parent process is killed by 'kill -9', how to terminate child processes -


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

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -