(win32) There is no SIGHUP

This commit is contained in:
Mukund Sivaraman 2008-09-05 15:13:06 +00:00
parent da3ca8d16e
commit e97ced5a37
1 changed files with 4 additions and 1 deletions

View File

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