[Oisf-devel] thoughs on ignore SIGPIPE

Delta Yeh delta.yeh at gmail.com
Thu Dec 15 17:20:56 UTC 2011


Here is the attach, please review.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ignore-signal-SIGPIPE-and-SIGSYS.patch
Type: application/octet-stream
Size: 763 bytes
Desc: not available
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20111216/adfb349e/attachment.obj>


More information about the Oisf-devel mailing list