summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-11-11 14:54:58 +0100
committerTom Gundersen <teg@jklm.no>2015-11-11 14:54:58 +0100
commita2e6fbf5c047314db036000203b42c6aac1e3511 (patch)
tree0075e2354fce27e2d7c5963bcaa41758db9cfa86 /src/systemctl/systemctl.c
parenta5642c7ee3dbd9aae07b531a81c0f02b3c2e1103 (diff)
parent91d0f17e03e3975cac95c418e101f5266b56e897 (diff)
Merge pull request #1848 from poettering/journal-sync
add journalctl --sync command and other stuff
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 0c42766a60..e9d73ea9d0 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -2186,7 +2186,7 @@ static int list_jobs(int argc, char *argv[], void *userdata) {
return bus_log_parse_error(r);
output_jobs_list(jobs, c, skipped);
- return r;
+ return 0;
}
static int cancel_job(int argc, char *argv[], void *userdata) {
@@ -7709,5 +7709,7 @@ finish:
release_busses();
+ /* Note that we return r here, not EXIT_SUCCESS, so that we can implement the LSB-like return codes */
+
return r < 0 ? EXIT_FAILURE : r;
}