浏览代码

simplify options_act()

Roger Dingledine 16 年之前
父节点
当前提交
05e55d82b6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/or/config.c

+ 2 - 2
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 */