From 88f9458c6e2b9748395c02e3616080b01f101f02 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 23 Oct 2016 23:57:27 +0200 Subject: [PATCH] reboot: Wait a bit on successful signal delivery To prevent returning the prompt too soon, and thereby messing up the output from Finit, wait a bit after successful delivery of signal to reboot/halt/poweroff. Signed-off-by: Joachim Nilsson --- reboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reboot.c b/reboot.c index 662daafb..7c81c772 100644 --- a/reboot.c +++ b/reboot.c @@ -191,6 +191,8 @@ int main(int argc, char *argv[]) if (c) err(1, "Failed signalling init to %s", msg); + else + sleep(2); return 0; }