Re: Problem: using signal.alarm() to stop a run-away os.system() command

2005-05-27 Thread mkent
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

Re: Problem: using signal.alarm() to stop a run-away os.system() command

2005-05-27 Thread Jp Calderone
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" >

Problem: using signal.alarm() to stop a run-away os.system() command

2005-05-27 Thread mkent
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)