diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-31 21:05:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-31 21:05:54 +0200 |
commit | 22f4096ca96acd504ac74e7dfad96f07edb6da51 (patch) | |
tree | ebe2bb84f85e0abd8abb508fa91e2c3165bc4ce4 /src/cgls.c | |
parent | f73e33d9ecdd5f97f31a3efcca254519eef5b7ea (diff) |
systemctl: rework exit codes for all utility programs to follow LSB or other standards
Diffstat (limited to 'src/cgls.c')
-rw-r--r-- | src/cgls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cgls.c b/src/cgls.c index f1f3046edf..93617ddc2f 100644 --- a/src/cgls.c +++ b/src/cgls.c @@ -72,7 +72,7 @@ static int parse_argv(int argc, char *argv[]) { } int main(int argc, char *argv[]) { - int r = 0, retval = 1; + int r = 0, retval = EXIT_FAILURE; log_parse_environment(); log_open(); @@ -80,7 +80,7 @@ int main(int argc, char *argv[]) { if ((r = parse_argv(argc, argv)) < 0) goto finish; else if (r == 0) { - retval = 0; + retval = EXIT_SUCCESS; goto finish; } @@ -115,7 +115,7 @@ int main(int argc, char *argv[]) { if (r < 0) log_error("Failed to list cgroup tree: %s", strerror(-r)); - retval = 0; + retval = EXIT_SUCCESS; finish: |