Important Update:
- Ingore SIGPIPE event, ie. writing to socket after it closed
This commit is contained in:
@@ -37,6 +37,7 @@ void ConfigureSignalHandlers()
|
|||||||
|
|
||||||
// Signals to be ignored
|
// Signals to be ignored
|
||||||
signal( SIGCHLD, SIG_IGN );
|
signal( SIGCHLD, SIG_IGN );
|
||||||
|
signal( SIGPIPE, SIG_IGN );
|
||||||
|
|
||||||
// Signals for normal termination
|
// Signals for normal termination
|
||||||
TermAct.sa_handler = SignalTerminate;
|
TermAct.sa_handler = SignalTerminate;
|
||||||
@@ -57,7 +58,6 @@ void ConfigureSignalHandlers()
|
|||||||
sigaction( SIGABRT, &AbortAct, 0 );
|
sigaction( SIGABRT, &AbortAct, 0 );
|
||||||
sigaction( SIGFPE, &AbortAct, 0 );
|
sigaction( SIGFPE, &AbortAct, 0 );
|
||||||
sigaction( SIGILL, &AbortAct, 0 );
|
sigaction( SIGILL, &AbortAct, 0 );
|
||||||
sigaction( SIGPIPE, &AbortAct, 0 );
|
|
||||||
sigaction( SIGSEGV, &AbortAct, 0 );
|
sigaction( SIGSEGV, &AbortAct, 0 );
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user