[zeromq-dev] Signal handling in blocking zmq_recv

Martin Sustrik sustrik at 250bpm.com
Mon Mar 8 08:29:09 CET 2010


Brian,

> Do you have a sense of what a proper signal handler would do?

I wasn't solving the problem myself. Mato Lucina will give you more 
proper info.

However, AFAIU, Python (Ruby) should block all the signals on its 
thread(s) and create a separate thread to call sigwait occasionally to 
check for the signals.

See the implemetation example here:

http://github.com/mato/zeromq-examples/blob/master/zmq-camera.c

Martin



More information about the zeromq-dev mailing list