(trunk gtk) minor tweak to signal_handler()

This commit is contained in:
Jordan Lee 2011-08-13 13:59:50 +00:00
parent 6f850a3d87
commit 5adcf5d32d
1 changed files with 3 additions and 10 deletions

View File

@ -461,17 +461,10 @@ signal_handler( int sig )
signal( sig, SIG_DFL );
raise( sig );
}
else switch( sig )
else if(( sig == SIGINT ) || ( sig == SIGTERM ))
{
case SIGINT:
case SIGTERM:
g_message( _( "Got signal %d; trying to shut down cleanly. Do it again if it gets stuck." ), sig );
gtr_actions_handler( "quit", sighandler_cbdata );
break;
default:
g_message( "unhandled signal" );
break;
g_message( _( "Got signal %d; trying to shut down cleanly. Do it again if it gets stuck." ), sig );
gtr_actions_handler( "quit", sighandler_cbdata );
}
}