From 35746a9ee75608e7b2393e4519adca602bf2615f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Oct 2017 13:42:28 -0400 Subject: Comment-only change: annotate exit() calls. Sometimes when we call exit(), it's because the process is completely hopeless: openssl has a broken AES-CTR implementation, or the clock is in the 1960s, or something like that. But sometimes, we should return cleanly from tor_main() instead, so that embedders can keep embedding us and start another Tor process. I've gone through all the exit() and _exit() calls to annotate them with "exit ok" or "XXXX bad exit" -- the next step will be to fix the bad exit()s. First step towards 23848. --- src/common/compat_winthreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/compat_winthreads.c') diff --git a/src/common/compat_winthreads.c b/src/common/compat_winthreads.c index 122e0f0166..5f7ec94c23 100644 --- a/src/common/compat_winthreads.c +++ b/src/common/compat_winthreads.c @@ -52,7 +52,7 @@ spawn_exit(void) //we should never get here. my compiler thinks that _endthread returns, this //is an attempt to fool it. tor_assert(0); - _exit(0); + _exit(0); // exit ok: unreachable. // LCOV_EXCL_STOP } -- cgit v1.2.3-54-g00ecf