1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(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

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;
}
}