]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: add a comment that clarifies why we do "return r" at the end of main()
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Nov 2015 11:57:40 +0000 (12:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Nov 2015 11:57:40 +0000 (12:57 +0100)
To avoid confusion as outlined in #1845.

src/systemctl/systemctl.c

index 0c42766a60cf0669b9c0677f075d3d5633065aac..616ede814c50e3a538223ff8c8e5959b02a88853 100644 (file)
@@ -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;
 }