Don't enter daemon mode if standalone is false

This commit is contained in:
Tatsuhiro Tsujikawa 2013-05-02 10:08:47 +09:00
parent aee621b3d4
commit 43895155e0

View File

@ -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;