how to kill process and child processes from python? -


for example bash:

 kill -9 -pid  

os.kill(pid, signal.sigkill) kill parent process.

when pass negative pid kill, sends signal process group (absolute) number. equivalent os.killpg() in python.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -