aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/oneit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/oneit.c b/toys/other/oneit.c
index 2ee21768..c400f6d6 100644
--- a/toys/other/oneit.c
+++ b/toys/other/oneit.c
@@ -57,7 +57,7 @@ static void oneit_signaled(int signal)
// PID 1 can't call reboot() because it kills the task that calls it,
// which causes the kernel to panic before the actual reboot happens.
sync();
- if (getpid()!=1) _exit(0);
+ if (getpid()!=1) _exit(127+signal);
if (!vfork()) reboot(action);
}