for example from bash: kill -9 -PID os.kill(pid, signal.SIGKILL) kill only parent process. Continue reading...