[zeromq-dev] Signal handling in blocking zmq_recv

Brian Granger ellisonbg at gmail.com
Tue Mar 9 19:54:32 CET 2010


>> If pthread_sigmask() is used to block any signals from interrupting the I/O thread, how do one unblock a blocked zmq_recv?  What's the alternative if we need to do so?

The blocked zmq_recv seems to be the crux of the problem.

> When would you want to unblock a blocked zmq_recv()? The only time I can
> think of doing that legitimately is when the entire application/component
> is going away, in which case we want to change the behaviour of zmq_term()
> as discussed in my other email.

I agree that most of the time, you would be exiting the application.
But, you might want to trigger
clean up actions of various sorts, before exiting.


Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com

More information about the zeromq-dev mailing list