[Oisf-devel] thoughs on ignore SIGPIPE

Delta Yeh delta.yeh at gmail.com
Thu Dec 15 17:04:13 UTC 2011


Should we use pthread_sigmask  instead ?

2011/12/16 Victor Julien <victor at inliniac.net>:
> On 12/15/2011 01:40 PM, Delta Yeh wrote:
>> Hi all,
>>  I notice that suricata use socket somewhere, but it does not set
>> handler for SIGPIPE.
>> For socket application, we usually ignore SIGPIPE,
>> The default SIGPIPE handle will exit process.
>> So maybe we need:
>>
>>     /* registering signals we use */
>>     SignalHandlerSetup(SIGINT, SignalHandlerSigint);
>>     SignalHandlerSetup(SIGTERM, SignalHandlerSigterm);
>> +    SignalHandlerSetup(SIGPIPE, SIG_IGN);
>> +    SignalHandlerSetup(SIGSYS, SIG_IGN);
>>
>> Any suggestion  on this change?
>
> Makes sense to me! Can you send in a patch?
>
> --
> ---------------------------------------------
> Victor Julien
> http://www.inliniac.net/
> PGP: http://www.inliniac.net/victorjulien.asc
> ---------------------------------------------
>
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel



More information about the Oisf-devel mailing list