mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 13:21:44 +00:00
(trunk daemon) yet another commit for #2119 "daemon should reload settings.json on SIGHUP
This commit is contained in:
@@ -283,7 +283,7 @@ main( int argc, char ** argv )
|
||||
dtr_watchdir * watchdir = NULL;
|
||||
|
||||
signal( SIGINT, gotsig );
|
||||
signal( SIGKILL, gotsig );
|
||||
signal( SIGTERM, gotsig );
|
||||
#ifndef WIN32
|
||||
signal( SIGHUP, gotsig );
|
||||
#endif
|
||||
|
||||
@@ -272,7 +272,7 @@ signal_handler( int sig )
|
||||
else switch( sig )
|
||||
{
|
||||
case SIGINT:
|
||||
case SIGKILL:
|
||||
case SIGTERM:
|
||||
g_message( _( "Got signal %d; trying to shut down cleanly. Do it again if it gets stuck." ), sig );
|
||||
doAction( "quit", sighandler_cbdata );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user