Thanks, that's the kind of on-target info I needed. Now, shouldn't
there be some kind of mention of this limitation in the docs?
--
http://mail.python.org/mailman/listinfo/python-list
On 27 May 2005 12:09:39 -0700, [EMAIL PROTECTED] wrote:
>I'm trying to use signal.alarm to stop a run-away os.system command.
>Can anyone exlain the following behavior?
>
>Given following the trivial program:
>
>import os
>import signal
>
>def timeoutHandler(signum, frame):
>print "Timeout"
>
I'm trying to use signal.alarm to stop a run-away os.system command.
Can anyone exlain the following behavior?
Given following the trivial program:
import os
import signal
def timeoutHandler(signum, frame):
print "Timeout"
raise ValueError
signal.signal(signal.SIGALRM, timeoutHandler)