KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have my main application thread that spawns 2 threads and I catch SIGINT in my main thread to quit them nicely. On linux, I'm using signal.pause() and it works perfectly. What is the best way to implement signal.pause() on Windows? My ugly solution is: my_queue.get(True, averylongtime) And put something in my_queue in my signal handler. Note that if I don't specify a timeout, SIGINT is not caught. But I wonder if there's a better solution. Thank you
Tags (comma-separated)
Save Edits
Cancel