"Minesh Patel" wrote in message
news:mailman.1408.1255583431.2807.python-l...@python.org...
> >
>> Any ideas? comments on code welcome also.
>
> Here's something that I would probably do, there may be better ways.
> This only works on python2.6 for the terminate() method.
>
>
> import signal
> im
>
> Any ideas? comments on code welcome also.
Here's something that I would probably do, there may be better ways.
This only works on python2.6 for the terminate() method.
import signal
import subprocess
def timeout_handler(signum, frame):
print "About to kill process"
p.terminate()
fo