diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-13 10:00:41 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-13 10:00:41 +0100 |
commit | e9dbd6dd8f365a71a3e569d26b12ed5e4a6419ce (patch) | |
tree | de71f499a15f250da479b48a7daf7deb304303bd /src/or/tor_api.h | |
parent | ccf0f77da1894a11502fa36767838f687a4494d9 (diff) | |
download | tor-e9dbd6dd8f365a71a3e569d26b12ed5e4a6419ce.tar.gz tor-e9dbd6dd8f365a71a3e569d26b12ed5e4a6419ce.zip |
Update the documentation in tor_api.h
Diffstat (limited to 'src/or/tor_api.h')
-rw-r--r-- | src/or/tor_api.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/or/tor_api.h b/src/or/tor_api.h index 7e86c7fec5..6d4a9518e0 100644 --- a/src/or/tor_api.h +++ b/src/or/tor_api.h @@ -66,14 +66,12 @@ void tor_main_configuration_free(tor_main_configuration_t *cfg); * This function will not return until Tor is done running. It returns zero * on success, and nonzero on failure. * - * BUG 23848: In many cases, tor_main will call exit() or abort() instead of - * returning. This is not the intended long-term behavior; we are trying to - * fix it. - * - * BUG 23847: You can only call tor_main() once in a single process; if it - * returns and you call it again, you may crash, or you may encounter other - * unexpected behavior, including possible security issues. This is not - * intended long-term behavior; we are trying to fix it. + * If you want to control when Tor exits, make sure to configure a control + * socket. The OwningControllerFD option may be helpful there. + * + * BUG 23847: Sometimes, if you call tor_main a second time (after it has + * returned), Tor may crash or behave strangely. We have fixed all issues of + * this type that we could find, but more may remain. * * LIMITATION: You cannot run more than one instance of Tor in the same * process at the same time. Concurrent calls will cause undefined behavior. |