Popular recipes tagged "terminate" but not "handler"http://code.activestate.com/recipes/tags/terminate-handler/2009-02-25T10:45:01-08:00ActiveState Code Recipessubprocess.terminate() not always implemented (Python) 2009-02-25T10:45:01-08:00Gui Rhttp://code.activestate.com/recipes/users/4166241/http://code.activestate.com/recipes/576667-subprocessterminate-not-always-implemented/ <p style="color: grey"> Python recipe 576667 by <a href="/recipes/users/4166241/">Gui R</a> (<a href="/recipes/tags/process_management/">process_management</a>, <a href="/recipes/tags/subprocess/">subprocess</a>, <a href="/recipes/tags/terminate/">terminate</a>). Revision 2. </p> <p>The new subprocess module brings clarity and simplicity over the popenXX() functions and os.spawnXX() functions, but some implementations don't have the subprocess.terminate() method, which is crucial for killing a spawned process. This workaround works on both POSIX and Windows.</p>