[zeromq-dev] [patch] handle SIGPIPE
Martin Lucina
mato at kotelna.sk
Wed Jul 7 09:03:49 CEST 2010
On 7/7/2010, "Steven McCoy" <steven.mccoy at miru.hk> wrote:
>On 7 July 2010 11:29, Dhammika Pathirana <dhammika at gmail.com> 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
More information about the zeromq-dev
mailing list