[or-cvs] [tor/master] simplify options_act()

Nick Mathewson nickm at seul.org
Mon May 25 00:32:33 UTC 2009


Author: Roger Dingledine <arma at torproject.org>
Date: Sun, 24 May 2009 17:01:30 -0400
Subject: simplify options_act()
Commit: 05e55d82b6a10e20be2d447c35f42a1bef9d7da7

---
 src/or/config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index a4461a6..0dd0931 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1280,14 +1280,14 @@ options_act(or_options_t *old_options)
     return 0;
 
   /* Finish backgrounding the process */
-  if (running_tor && options->RunAsDaemon) {
+  if (options->RunAsDaemon) {
     /* We may be calling this for the n'th time (on SIGHUP), but it's safe. */
     finish_daemon(options->DataDirectory);
   }
 
   /* Write our pid to the pid file. If we do not have write permissions we
    * will log a warning */
-  if (running_tor && options->PidFile)
+  if (options->PidFile)
     write_pidfile(options->PidFile);
 
   /* Register addressmap directives */
-- 
1.5.6.5




More information about the tor-commits mailing list