From 43895155e0173af8a2d0fab515188ccf8ae5cec4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 2 May 2013 10:08:47 +0900 Subject: [PATCH] Don't enter daemon mode if standalone is false --- src/option_processing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option_processing.cc b/src/option_processing.cc index 3b2d01e0..5c017989 100644 --- a/src/option_processing.cc +++ b/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;