On 7/7/2010, "Steven McCoy" <[email protected]> wrote: >On 7 July 2010 11:29, Dhammika Pathirana <[email protected]> wrote: > >> How does 0MQ ignore signals? I don't see a signal handler or SIG_IGN flag. >> Default SIGPIPE behavior is to terminate the process.ore >> >> >It ignores them by not handling them at all. The application developer >needs to manage them. > >At a guess.
I don't have the code handy right now, look for the call to pthread_sigmask(). The signal mask is cleared for all 0MQ I/O threads, so they will not get any signals (excepting SIGSEGV, etc.) Hence the SIGPIPE issue should be moot, unless on some broken OS a SIGPIPE correctly ignored by a 0MQ I/O thread is getting sent to an application thread instead, which is why I asked to see a practical case of something breaking. -mato _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
