mirror of
https://github.com/systemd/systemd.git
synced 2025-05-27 21:05:55 +03:00
Merge pull request #11506 from bl33pbl0p/reload-fix
Return -EAGAIN instead of -EALREADY from unit_reload
This commit is contained in:
commit
c49adafa82
@ -1895,7 +1895,7 @@ int unit_reload(Unit *u) {
|
||||
|
||||
state = unit_active_state(u);
|
||||
if (state == UNIT_RELOADING)
|
||||
return -EALREADY;
|
||||
return -EAGAIN;
|
||||
|
||||
if (state != UNIT_ACTIVE) {
|
||||
log_unit_warning(u, "Unit cannot be reloaded because it is inactive.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user