clients exit immediately on interrupt; they don't wait

svn:r2076
This commit is contained in:
Roger Dingledine
2004-07-21 03:15:32 +00:00
parent 45e4af83e8
commit 82e1b89508
+4
View File
@@ -802,6 +802,10 @@ static int do_main_loop(void) {
}
#else /* do signal stuff only on unix */
if(please_shutdown) {
if(!server_mode()) { /* do it now */
log(LOG_NOTICE,"Interrupt: exiting cleanly.");
exit(0);
}
if(shutting_down) { /* we've already been asked. do it now. */
log(LOG_NOTICE,"Second sigint received; exiting now.");
exit(0);