Comment on Beyond Ctrl-C: The dark corners of Unix signal handlingparentComments−Spivak2yI mean you can just have the signal handler throw StopRequested in your Python boilerplate and never think about it again.One common pattern is raising KeyboardInterrupt from your handler so it's all handled the same.
Comments
I mean you can just have the signal handler throw StopRequested in your Python boilerplate and never think about it again.
One common pattern is raising KeyboardInterrupt from your handler so it's all handled the same.