# linux, mac os.kill(pid, signal.SIGKILL) killedpid, stat = os.waitpid(pid, os.WNOHANG) if killedpid == 0: print >> sys.stderr, "ACK! PROCESS NOT KILLED?" # windows handle = subprocess.Popen("someprocess here", shell=False) subprocess.Popen("taskkill /F /T /PID %i"%handle.pid , shell=True) #also # Create a process that won't end on its own import subprocess process = sub..