Message26598
Logged In: YES
user_id=21627
This is not a bug. It is documented that way: the default
handler is SIG_DFL, which in turn does the system default
for the signal. For Sigalarm, it is to terminate the process.
If you want an exception raised, you need to install a
signal handler:
>>> def doalarm(signum,frame):
... raise "alarm"
...
>>> signal.signal(signal.SIGALRM, doalarm)
<function doalalarm at 0xb7d897d4>
>>> signal.alarm(3)
0
>>>
Traceback (most recent call last):
File "<stdin>", line 0, in ?
File "<stdin>", line 2, in doalarm
alarm
|
|
Date |
User |
Action |
Args |
2007-08-23 14:35:28 | admin | link | issue1326841 messages |
2007-08-23 14:35:28 | admin | create | |
|