Switch to pselect(2) and add signal handling to Select class
This commit is contained in:
committed by
Keith Winstein
parent
6edc04ed1c
commit
1d0b16881c
@@ -21,3 +21,15 @@
|
||||
Select *Select::instance = NULL;
|
||||
|
||||
fd_set Select::dummy_fd_set;
|
||||
|
||||
sigset_t Select::dummy_sigset;
|
||||
|
||||
void Select::handle_signal( int signum )
|
||||
{
|
||||
fatal_assert( signum >= 0 );
|
||||
fatal_assert( signum <= MAX_SIGNAL_NUMBER );
|
||||
|
||||
Select &sel = get_instance();
|
||||
sel.got_signal[ signum ] = 1;
|
||||
sel.got_any_signal = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user