Trapping sigint to ask for a key press
The script that I'm working on is going to run for a long time. It's purpose is to identify and delete certain messages from a mailbox, then call imapclient.expunge() when complete. I have written a signal handler to trap SIGINT and ask the user what he wants to do next.
When I run the script in Wing IDE (6.0.12-1) the interrupt handler never gets called. I assume that Wing is hooking the SIGINT signal itself. Suggestions on how I can work around this (other than trapping some other signal)?
Comments