In Python 2.5, how do I kill a subprocess?

You call os.kill on the process pid.

os.kill(process.pid, signal.SIGKILL)

You’re OK because you’re on on Linux. Windows users are out of luck.

Leave a Comment