summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-20 16:58:42 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-20 17:04:07 +0100
commitf2fb2ec942f54c7edd545b3641949c443d83c70d (patch)
treec080a0754be3caf33656a628125192d945acdb64 /src
parentexit-status: introduce EXIT_EXCEPTION mapping to 255 (diff)
downloadsystemd-f2fb2ec942f54c7edd545b3641949c443d83c70d.tar.xz
systemd-f2fb2ec942f54c7edd545b3641949c443d83c70d.zip
nspawn: use EXIT_EXCEPTION where appropriate
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn-stub-pid1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nspawn/nspawn-stub-pid1.c b/src/nspawn/nspawn-stub-pid1.c
index c83d55cb86..5d17df39d9 100644
--- a/src/nspawn/nspawn-stub-pid1.c
+++ b/src/nspawn/nspawn-stub-pid1.c
@@ -5,6 +5,8 @@
#include <sys/prctl.h>
#include <unistd.h>
+#include "def.h"
+#include "exit-status.h"
#include "fd-util.h"
#include "log.h"
#include "missing.h"
@@ -12,7 +14,6 @@
#include "process-util.h"
#include "signal-util.h"
#include "time-util.h"
-#include "def.h"
static int reset_environ(const char *new_environment, size_t length) {
unsigned long start, end;
@@ -122,7 +123,7 @@ int stub_pid1(sd_id128_t uuid) {
if (si.si_pid == pid && si.si_code == CLD_EXITED)
r = si.si_status; /* pass on exit code */
else
- r = 255; /* signal, coredump, timeout, … */
+ r = EXIT_EXCEPTION; /* signal, coredump, timeout, … */
goto finish;
}