9 lines
130 B
Python
9 lines
130 B
Python
import signal
|
|
|
|
def handler(signum, frame):
|
|
print "signal:", signum, frame
|
|
|
|
signal.signal(signal.SIGINT, handler)
|
|
|
|
input()
|