mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
Don't enter daemon mode if standalone is false
This commit is contained in:
parent
aee621b3d4
commit
43895155e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user