Run process with timeout
Alex Martelli
aleaxit at yahoo.com
Mon Oct 17 16:20:49 EDT 2005
Micah Elliott <mde at micah.elliott.name> wrote:
> Is there any way to enable Python's subprocess module to do (implicit?)
> group setup to ease killing of all children? If not, is it a reasonable
> RFE?
Not as far as I know. It might be a reasonable request in suitable
dialects of Unix-like OSes, though. A setpgrp call (in the callback
which you can request Popen to perform, after it forks and before it
execs) might suffice... except that you can't rely on children process
not to setpgrp's themselves, can you?!
Alex
More information about the Python-list
mailing list