[Oisf-devel] thoughs on ignore SIGPIPE
Victor Julien
victor at inliniac.net
Thu Dec 15 16:13:32 UTC 2011
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
---------------------------------------------
More information about the Oisf-devel
mailing list