Handle SIGHUP.

This commit is contained in:
Jonathan Moore Liles 2012-03-04 19:12:32 -08:00
parent 92dfbbc6f6
commit 670400cbf9
3 changed files with 5 additions and 1 deletions

View File

@ -148,6 +148,8 @@ main ( int argc, char **argv )
ensure_dirs(); ensure_dirs();
signal( SIGTERM, sigterm_handler ); signal( SIGTERM, sigterm_handler );
signal( SIGHUP, sigterm_handler );
signal( SIGINT, sigterm_handler );
Fl_Tooltip::color( FL_BLACK ); Fl_Tooltip::color( FL_BLACK );
Fl_Tooltip::textcolor( FL_YELLOW ); Fl_Tooltip::textcolor( FL_YELLOW );

View File

@ -448,7 +448,7 @@ die ( void )
void void
set_traps ( void ) set_traps ( void )
{ {
// signal( SIGHUP, signal_handler ); signal( SIGHUP, signal_handler );
signal( SIGINT, signal_handler ); signal( SIGINT, signal_handler );
// signal( SIGQUIT, signal_handler ); // signal( SIGQUIT, signal_handler );
// signal( SIGSEGV, signal_handler ); // signal( SIGSEGV, signal_handler );

View File

@ -161,6 +161,8 @@ main ( int argc, char **argv )
thread.set(); thread.set();
signal( SIGTERM, sigterm_handler ); signal( SIGTERM, sigterm_handler );
signal( SIGHUP, sigterm_handler );
signal( SIGINT, sigterm_handler );
fl_register_images(); fl_register_images();