Package tp :: Package client :: Module killableprocess
[show private | hide private]
[frames | no frames]

Module tp.client.killableprocess

killableprocess - Subprocesses which can be reliably killed

This module is a subclass of the builtin "subprocess" module. It allows
processes that launch subprocesses to be reliably killed on Windows (via the Popen.kill() method.

It also adds a timeout argument to Wait() for a limited period of time before
forcefully killing the process.

Note: On Windows, this module requires Windows 2000 or higher (no support for
Windows 95, 98, or NT 4.0). It also requires ctypes, which is bundled with
Python 2.5+ or available from http://python.net/crew/theller/ctypes/

Classes
Popen  

Function Summary
  call(*args, **kwargs)
  check_call(*args, **kwargs)
Call a program with an optional timeout.
  DoNothing(*args)

Variable Summary
bool mswindows = False

Function Details

check_call(*args, **kwargs)

Call a program with an optional timeout. If the program has a non-zero
exit status, raises a CalledProcessError.

Variable Details

mswindows

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Fri Jan 1 08:00:26 2010 http://epydoc.sf.net