diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-07-16 21:39:56 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-07-21 15:09:12 +0200 |
commit | 2d018ae23b838f050516d06859f50ecb9733d44b (patch) | |
tree | f83bb24aa67032ca354f09a48f2f8b6f2213c088 | |
parent | d1a34ae9c20f1c02aab17884919eccef572b1d21 (diff) |
core: correct return value from reload methods
Return 1 from *_reload() methods to signify "we did something", just
like in *_start(). This causes "Reloading foo..." messages to be logged.
"Reloaded foo." messages are already logged.
-rw-r--r-- | src/core/mount.c | 2 | ||||
-rw-r--r-- | src/core/service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 851b41351e..a4fdf2b798 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1025,7 +1025,7 @@ static int mount_reload(Unit *u) { assert(m->state == MOUNT_MOUNTED); mount_enter_remounting(m); - return 0; + return 1; } static int mount_serialize(Unit *u, FILE *f, FDSet *fds) { diff --git a/src/core/service.c b/src/core/service.c index d72ff54daa..78c8838f7c 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1974,7 +1974,7 @@ static int service_reload(Unit *u) { assert(s->state == SERVICE_RUNNING || s->state == SERVICE_EXITED); service_enter_reload(s); - return 0; + return 1; } _pure_ static bool service_can_reload(Unit *u) { |