[zeromq-dev] gist: using signalfd with zloop - synchronous signal delivery
Michel Pelletier
pelletier.michel at gmail.com
Tue Jan 14 22:44:41 CET 2014
Awesome!
On Tue, Jan 14, 2014 at 1:32 PM, Michael Haberler <mail17 at mah.priv.at>wrote:
> since it's a bit tricky (or rather I didnt get it right first time..):
>
> here is an example for using signalfd(2) for synchronous signal delivery
> in a zloop reactor
>
> the key steps are:
> - disable czmq signal handling by zsys_handler_set() once the context is
> created; this will also disable setting of zctx_interrupted
> - block all signals from being handled via traditional handlers
> - explicitly enable signals you want delivered via signalfd()
>
> https://gist.github.com/mhaberler/8426050
>
> - Michael
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140114/80cc5225/attachment.htm>
More information about the zeromq-dev
mailing list