[zeromq-dev] python, calls not unblocking on signal

Justin Karneges justin at affinix.com
Wed Feb 1 19:02:32 CET 2012


I'm running workers in different threads of a python app, while the main thread 
sleeps.  I want to be able to cleanly shutdown the app when ctrl-c is pressed.  
As it is now, when ctrl-c is pressed, the main thread receives 
KeyboardException.  However, blocking zmq calls in the worker threads do not 
return with EINTR and so all the threads remain stuck.

Is this a python peculiarity regarding signal handling?  How are people doing 
clean shutdowns on ctrl-c with python?


More information about the zeromq-dev mailing list