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:
parent
6f850a3d87
commit
5adcf5d32d
1 changed files with 3 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue