summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-01 02:11:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-01 02:11:52 +0200
commitaabd9b11ba563e1d988b119960c94b139ec5de00 (patch)
treee6d78d7101d635e8976db16dda674ce0b7fdc49a /src
parent706900b704eac4eb26e3e30795c2ead8b0c3e673 (diff)
systemctl: make sure daemon-reexec and friends return a correct error code
Diffstat (limited to 'src')
-rw-r--r--src/systemctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 901804a766..ea09c3cf36 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -2928,7 +2928,7 @@ static int daemon_reload(DBusConnection *bus, char **args, unsigned n) {
if (arg_action != ACTION_SYSTEMCTL && error_is_no_service(&error)) {
/* There's always a fallback possible for
* legacy actions. */
- r = 0;
+ r = -EADDRNOTAVAIL;
goto finish;
}
@@ -2937,7 +2937,7 @@ static int daemon_reload(DBusConnection *bus, char **args, unsigned n) {
goto finish;
}
- r = 1;
+ r = 0;
finish:
if (m)
@@ -4605,7 +4605,7 @@ static int talk_upstart(void) {
if (!(reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error))) {
if (error_is_no_service(&error)) {
- r = 0;
+ r = -EADDRNOTAVAIL;
goto finish;
}
@@ -4614,7 +4614,7 @@ static int talk_upstart(void) {
goto finish;
}
- r = 1;
+ r = 0;
finish:
if (m)