Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Spivak
on Sept 8, 2024
|
parent
|
context
|
favorite
| on:
Beyond Ctrl-C: The dark corners of Unix signal han...
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
One common pattern is raising KeyboardInterrupt from your handler so it's all handled the same.