On Unix, Python now supports signal handling. The module
signal
exports functions signal
, pause
and
alarm
, which act similar to their Unix counterparts. The
module also exports the conventional names for the various signal
classes (also usable with os.kill()
) and SIG_IGN
and
SIG_DFL
. See the section on signal
in the Library
Reference Manual for more information.