diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-21 03:15:32 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-21 03:15:32 +0000 |
commit | 30d6b1479b5485c7e8cc3d10353ba115110ac81a (patch) | |
tree | 113f0485ca46207e52a5e968e0596e0110954673 | |
parent | 84b8f8e04ab23e97976d8a292b83d299010dcfdf (diff) | |
download | tor-30d6b1479b5485c7e8cc3d10353ba115110ac81a.tar tor-30d6b1479b5485c7e8cc3d10353ba115110ac81a.tar.gz |
clients exit immediately on interrupt; they don't wait
svn:r2076
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 9ed1dd14e..759487c0a 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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); |