[zeromq-dev] signal handling using czmq

Pieter Hintjens ph at imatix.com
Thu Aug 21 14:29:03 CEST 2014

CZMQ does set up its own signal handling to trap SIGINT and SIGTERM.
You can disable this by calling

    zsys_handler_set (NULL);


On Thu, Aug 21, 2014 at 1:53 PM, Raju Kundhe <raju2082 at gmail.com> wrote:
> Hello,
> I'm using `czmq` and `zmq` libraries in my code. I've registered a signal
> handler for `SIGINT` by calling `signal` in main.
> see code here
> The above code doesn't get into signal handler when `ctrl+c` interrupt is
> given.
> what is the problem with `czmq` or `zmq` library and how it should be
> handled?
> I read that, zctx set's up it's own signal handler. But, my program doesn't
> terminate when ctrl+c is given even without using any signal handler' s ( I
> mean, default case should be handled? ).
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list