mirror of https://github.com/aria2/aria2
Don't enter daemon mode if standalone is false
parent
aee621b3d4
commit
43895155e0
|
@ -326,7 +326,7 @@ error_code::Value option_processing(Option& op, bool standalone,
|
||||||
return error_code::UNKNOWN_ERROR;
|
return error_code::UNKNOWN_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(op.getAsBool(PREF_DAEMON)) {
|
if(standalone && op.getAsBool(PREF_DAEMON)) {
|
||||||
if(daemon(0, 0) < 0) {
|
if(daemon(0, 0) < 0) {
|
||||||
perror(MSG_DAEMON_FAILED);
|
perror(MSG_DAEMON_FAILED);
|
||||||
return error_code::UNKNOWN_ERROR;
|
return error_code::UNKNOWN_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue