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? -- http://mail.python.org/mailman/listinfo/python-list