Python signal on shutdown of iterm is not firing
- iTerm2 version: Build 3.2.1beta3
- OS version: OSX latest release (no beta)
Detailed steps to reproduce the problem: Run this python code:
import signal
signal.signal(signal.SIGHUP, handler)
signal.signal(signal.SIGINT, handler)
signal.signal(signal.SIGQUIT, handler)
signal.signal(signal.SIGTERM, handler)
def handler(signum, frame):
print ("Signal handler called with signal", signum)
What happened: Cancel the process with cmd+c everything is ok. If iterm shuts down, the event is not firing.
What should have happened: Firing event