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
commit c49adafa82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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