mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Implement NEWNYM. Nick, did I do a bad thing?
svn:r6105
This commit is contained in:
@@ -1220,6 +1220,9 @@ control_signal_act(int the_signal)
|
||||
case 15:
|
||||
signal_callback(0,0,(void*)(uintptr_t)SIGTERM);
|
||||
break;
|
||||
case SIGNEWNYM:
|
||||
signal_callback(0,0,(void*)(uintptr_t)SIGNEWNYM);
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
@@ -1274,6 +1277,9 @@ signal_callback(int fd, short events, void *arg)
|
||||
zombies */
|
||||
break;
|
||||
#endif
|
||||
case SIGNEWNYM:
|
||||
circuit_expire_all_dirty_circs();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user