summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 5274bcc106..e86e0d941e 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1515,10 +1515,8 @@ static int become_shutdown(int objective, int retval) {
if (log_get_show_time())
command_line[pos++] = "--log-time";
- if (objective == MANAGER_EXIT) {
- xsprintf(exit_code, "--exit-code=%d", retval);
- command_line[pos++] = exit_code;
- }
+ xsprintf(exit_code, "--exit-code=%d", retval);
+ command_line[pos++] = exit_code;
assert(pos < ELEMENTSOF(command_line));