Merge pull request #11506 from bl33pbl0p/reload-fix

Return -EAGAIN instead of -EALREADY from unit_reload
This commit is contained in:
Lennart Poettering
2019-02-15 11:31:00 +01:00
committed by GitHub

View File

@@ -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.");