Handle SIGHUP.
This commit is contained in:
parent
92dfbbc6f6
commit
670400cbf9
|
@ -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 );
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue