marmots/testsig.py
2020-06-27 11:21:34 -04:00

9 lines
130 B
Python

import signal
def handler(signum, frame):
print "signal:", signum, frame
signal.signal(signal.SIGINT, handler)
input()