handling SIGINT

Jeff Davis jdavis at empires.org
Sat Apr 5 13:30:27 CEST 2003

I've got a python module that I wrote in C and it spends a good portion of
the time sleep()ing. When I run the python program that calls the C module
than a SIGINT only interrupts the current sleep and the main program can't
intercept the signal.

This may not be python-specific, but how do I handle a SIGINT while the
program is sleep()ing?


More information about the Python-list mailing list