Sfoglia il codice sorgente

Don't enter daemon mode if standalone is false

Tatsuhiro Tsujikawa 12 anni fa
parent
commit
43895155e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;