mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
clients exit immediately on interrupt; they don't wait
svn:r2076
This commit is contained in:
parent
84b8f8e04a
commit
30d6b1479b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue