mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
clients exit immediately on interrupt; they don't wait
svn:r2076
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user