Files

9 lines
115 B
Python

import signal
def handler(*args, **kwargs):
raise KeyboardInterrupt
signal.signal(signal.SIGTERM, handler)