summaryrefslogtreecommitdiff
path: root/src/cgroups-agent.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-31 21:05:54 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-31 21:05:54 +0200
commit22f4096ca96acd504ac74e7dfad96f07edb6da51 (patch)
treeebe2bb84f85e0abd8abb508fa91e2c3165bc4ce4 /src/cgroups-agent.c
parentf73e33d9ecdd5f97f31a3efcca254519eef5b7ea (diff)
systemctl: rework exit codes for all utility programs to follow LSB or other standards
Diffstat (limited to 'src/cgroups-agent.c')
-rw-r--r--src/cgroups-agent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cgroups-agent.c b/src/cgroups-agent.c
index af458b25e4..6f7a857eaf 100644
--- a/src/cgroups-agent.c
+++ b/src/cgroups-agent.c
@@ -21,6 +21,8 @@
#include <dbus/dbus.h>
+#include <stdlib.h>
+
#include "log.h"
#include "dbus-common.h"
@@ -28,7 +30,7 @@ int main(int argc, char *argv[]) {
DBusError error;
DBusConnection *bus = NULL;
DBusMessage *m = NULL;
- int r = 1;
+ int r = EXIT_FAILURE;
dbus_error_init(&error);
@@ -76,7 +78,7 @@ int main(int argc, char *argv[]) {
goto finish;
}
- r = 0;
+ r = EXIT_SUCCESS;
finish:
if (bus) {