[zeromq-dev] CZMQ zctx_new signal handler side effect

Pieter Hintjens ph at imatix.com
Thu Dec 22 22:26:56 CET 2011


On Thu, Dec 22, 2011 at 1:41 PM, Philip Kovacs <kovacsp3 at comcast.net> wrote:

> Am I correct that, if the attached thread sends no explicit message,
> the main thread will not see anything on its zmq_pollitem_t, even if
> all masks are set on (ZMQ_POLLIN | ZMQ_POLLOUT | ZMQ_POLLERR) ?

There's no signal and no error on the pipe so presumably that's how it
is. The attached thread has to tell its parent, "bye bye" even if it's
a zero-byte message. I believe I did this in an example simply by
having a blocking recv on the pipe, and exiting when that was done.

-Pieter



More information about the zeromq-dev mailing list