Multi-threading with a simple timer?

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Jul 3 09:25:21 EDT 2018


Robin Becker wrote:
> if I leave out the signal.signal(signal.SIGALRM,signal.SIG_IGN) then the 
> timeout function gets called anyway.

Yes, it needs some more stuff around it to make it useful.
Probably you also want the signal handler to raise an
exception and catch it somewhere rather than exiting
the process.

-- 
Greg


More information about the Python-list mailing list