[Oisf-devel] thoughs on ignore SIGPIPE
    Delta Yeh 
    delta.yeh at gmail.com
       
    Thu Dec 15 12:40:01 UTC 2011
    
    
  
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?
BR,
DeltaY
    
    
More information about the Oisf-devel
mailing list