]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
simplify options_act()
authorRoger Dingledine <arma@torproject.org>
Sun, 24 May 2009 21:01:30 +0000 (17:01 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 25 May 2009 00:31:50 +0000 (20:31 -0400)
src/or/config.c

index a4461a6fe7584fa17fb432d7e1cf8915cfa1de3f..0dd0931ece1c1c20640ad298529e50765ef27895 100644 (file)
@@ -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 */