mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Don't enter daemon mode if standalone is false
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user