浏览代码

Don't enter daemon mode if standalone is false

Tatsuhiro Tsujikawa 12 年之前
父节点
当前提交
43895155e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/option_processing.cc

+ 1 - 1
src/option_processing.cc

@@ -326,7 +326,7 @@ error_code::Value option_processing(Option& op, bool standalone,
       return error_code::UNKNOWN_ERROR;
     }
   }
-  if(op.getAsBool(PREF_DAEMON)) {
+  if(standalone && op.getAsBool(PREF_DAEMON)) {
     if(daemon(0, 0) < 0) {
       perror(MSG_DAEMON_FAILED);
       return error_code::UNKNOWN_ERROR;