tor/changes/feature24583
Nick Mathewson 97d9ba2380 Add a mostly disabled feature to debug restarting in-process
For 23847, we want Tor to be able to shut down and then restart in
the same process.  Here's a patch to make the Tor binary do that.
To test it, you need to build with --enable-restart-debugging, and
then you need to set the environment variable TOR_DEBUG_RESTART.
With this option, Tor will then run for 5 seconds, then restart
itself in-process without exiting.  This only happens once.

You can change the 5-second interval using
TOR_DEBUG_RESTART_AFTER_SECONDS.

Implements ticket 24583.
2018-01-19 09:52:05 -05:00

10 lines
559 B
Plaintext

o Minor features (testing, debugging):
- For development purposes, Tor now has a mode in which it runs
for a few seconds, then stops, and starts again without exiting
the process. This mode is meant to help us debug various issues
with ticket 23847. To use this feature, compile with
--enable-restart-degbugging, and set the TOR_DEBUG_RESTART
environment variable. This is expected to crash a lot, and is
really meant for developers only. It will likely be removed in a future
release. Implements ticket 24583.