summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-11 12:57:40 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-11 12:57:40 +0100
commit404f08d341c6fcd5f28664902adefd069f2082cd (patch)
tree1c4dbd6c5651f79a404066e676d1d44c92768ba1 /src
parent7fc04b12e0129cfedca05b13068e9c3aa7c3c196 (diff)
systemctl: add a comment that clarifies why we do "return r" at the end of main()
To avoid confusion as outlined in #1845.
Diffstat (limited to 'src')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 0c42766a60..616ede814c 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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;
}