[Oisf-devel] thoughs on ignore SIGPIPE

Victor Julien victor at inliniac.net
Fri Dec 16 14:34:10 UTC 2011


Applied, thanks!

On 12/15/2011 06:20 PM, Delta Yeh wrote:
> 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


-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list