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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -