mirror of
https://github.com/systemd/systemd.git
synced 2026-07-11 18:13:31 +00:00
systemctl: add a comment that clarifies why we do "return r" at the end of main()
To avoid confusion as outlined in #1845.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user