Major Update:
- FunctionCore
- Replace Channel->Ready with Channel->State (off/waiting/ready)
- Add Function reference to Handle
- SelectableBare/Core:
- Implement async address resolve with event handling
- Create ResolveHandler() signal handler (friend) function
- Change Create/Remove/DestroyHandle() methods to virtual methods
- Move socket specific code to SelectableCore
- Rename ChangeState() to virtual HandleState()
- Move ClearHandle() from SelectableBare -> SelectableCore
- Implement new/delete from THandle
- Set max TCP SYN count on connect
This commit is contained in:
@@ -41,21 +41,21 @@ void ConfigureSignalHandlers()
|
||||
sigemptyset( &TermAct.sa_mask );
|
||||
TermAct.sa_flags = SA_RESTART;
|
||||
|
||||
sigaction( SIGHUP, &TermAct, 0 );
|
||||
sigaction( SIGINT, &TermAct, 0 );
|
||||
sigaction( SIGQUIT, &TermAct, 0 );
|
||||
sigaction( SIGTERM, &TermAct, 0 );
|
||||
sigaction( SIGTSTP, &TermAct, 0 );
|
||||
sigaction( SIGHUP, &TermAct, NULL );
|
||||
sigaction( SIGINT, &TermAct, NULL );
|
||||
sigaction( SIGQUIT, &TermAct, NULL );
|
||||
sigaction( SIGTERM, &TermAct, NULL );
|
||||
sigaction( SIGTSTP, &TermAct, NULL );
|
||||
|
||||
// Signals for immediate termination
|
||||
AbortAct.sa_handler = SignalAbort;
|
||||
sigemptyset( &AbortAct.sa_mask );
|
||||
AbortAct.sa_flags = 0;
|
||||
|
||||
sigaction( SIGABRT, &AbortAct, 0 );
|
||||
sigaction( SIGFPE, &AbortAct, 0 );
|
||||
sigaction( SIGILL, &AbortAct, 0 );
|
||||
sigaction( SIGSEGV, &AbortAct, 0 );
|
||||
sigaction( SIGABRT, &AbortAct, NULL );
|
||||
sigaction( SIGFPE, &AbortAct, NULL );
|
||||
sigaction( SIGILL, &AbortAct, NULL );
|
||||
sigaction( SIGSEGV, &AbortAct, NULL );
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user