Make Select a singleton
It's going to manipulate process-global signal state, so multiple instances do not make sense.
This commit is contained in:
committed by
Keith Winstein
parent
bb651581a7
commit
768d4ce797
@@ -227,7 +227,7 @@ void emulate_terminal( int fd )
|
||||
/* open display */
|
||||
Terminal::Display display( true ); /* use TERM to initialize */
|
||||
|
||||
Select sel;
|
||||
Select &sel = Select::get_instance();
|
||||
sel.add_fd( STDIN_FILENO );
|
||||
sel.add_fd( fd );
|
||||
sel.add_fd( signal_fd );
|
||||
|
||||
Reference in New Issue
Block a user