[zeromq-dev] Signal interruptions in czmq

Pieter Hintjens ph at imatix.com
Thu Jun 26 21:03:28 CEST 2014


Here you go: https://github.com/zeromq/czmq/pull/533

:-)

On Thu, Jun 26, 2014 at 8:27 PM, Carlos Agüero
<caguero at osrfoundation.org> wrote:
> hi to everyone,
>
> czmq captures SIGINT and SIGTERM internally. Although we know the
> library exposes the variable zctx_interrupted to show to the clients
> that a signal was captured, I'd like to know if it's possible to
> disable this behavior, so no signal capture at all.
>
> I'd like to capture the signal in my main program, and then, notify
> the underlying libraries that is time to stop.
>
> I've seen the zsys_handler_set() and zsys_handler_reset() in zsys
> class. I already tried without success.
>
> Are those methods suppose to inhibit the signal capture in czmq? Is
> there any particular order in which they should be called?
> Is there any alternative way to inhibit the signal handling in czmq?
>
> Thanks,
> Carlos
> _______________________________________________
> 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