[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] clients exit immediately on interrupt; they don"t wait
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
clients exit immediately on interrupt; they don't wait
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.299
retrieving revision 1.300
diff -u -d -r1.299 -r1.300
--- main.c 21 Jul 2004 00:44:04 -0000 1.299
+++ main.c 21 Jul 2004 03:15:32 -0000 1.300
@@ -802,6 +802,10 @@
}
#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);