[email protected] said:
> > First, to summarize to others who were not part of the IRC discussion
> > yesterday (especially binding maintainers, but anyone doing signal handling
> > in a 0MQ application, take note!) what the "EINTR issue" is:
> 
> To summarise Mato's discussion, the problem is that most interpreted 
> languages ignore Ctrl+C while stuck in 0MQ blocking call such as 'recv'.

... and any application using 0MQ but not doing signal handling using
sigwait() in a separate thread and using 0MQ for delivering those signals
will also "ignore Ctrl+C", or in fact most other signals such as SIGTERM.

> To summarise: No, there's no way to make this work in 100% of cases. 
> POSIX API is broken. Sorry, folks.

Indeed, the problem is the lack of anything like "chained signal handlers"
in POSIX. It's all or nothing, no two separate "bits" of an application can
independently handle signals.

-mato
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to