diff --git a/cli/cli.c b/cli/cli.c index 2a2c5c9e0..4c18148b7 100644 --- a/cli/cli.c +++ b/cli/cli.c @@ -375,8 +375,9 @@ main( int argc, char ** argv ) } signal( SIGINT, sigHandler ); +#ifndef WIN32 signal( SIGHUP, sigHandler ); - +#endif tr_torrentSetStatusCallback( tor, torrentStateChanged, NULL ); tr_torrentStart( tor ); @@ -538,7 +539,9 @@ sigHandler( int signal ) switch( signal ) { case SIGINT: gotsig = 1; break; +#ifndef WIN32 case SIGHUP: manualUpdate = 1; break; +#endif default: break; } }