Windows: Catch 'End process' from the Task Manager
Posted on 2006-05-27
I can catch control-C from the keyboard, but I don't know how to catch 'End process' from the Task Manager.
Here's what I've tried. Note, there is no SIGHUP defined in the signal module.
def sighandler(signum, frame):
# do something in a loop