signal module question

Thomas Wouters thomas at xs4all.net
Thu May 4 16:15:23 EDT 2000


On Wed, May 03, 2000 at 02:21:41PM -0400, oliver wrote:

> I think two or more alarms can be installed, say, one alarm is fired up at
> 10 seconds interval, the other one 30 seconds interval. My question is can
> i use one handler to deal with both alarms? 

You cannot install more than one alarm. At least, not using standard UNIX
'alarm()' mechanisms, which the signal module is using. Setting a new alarm
erases the previous one.

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list