Can Python kill a child process that keeps on running?
Edward Elliott
nobody at 127.0.0.1
Tue May 2 04:50:08 EDT 2006
Serge Orlov wrote:
> I. Myself wrote:
>> Suppose it is supposed to run for one minute, but it just keeps going
>> and going. Does Python have any way to kill it?
>
> On linux it's pretty easy to do, just setup alarm signal. On windows
> it's not so trivial to the point you cannot do it using python.org
> distribution, you will need to poke in low level C API using win32
Can't you use a Timer thread and then send the runaway process a signal?
Does Windows not have the equivalent of SIGHUP/SIGTERM/SIGKILL?
More information about the Python-list
mailing list