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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-10-24 00:02:19 +02:00
parent 6cb3d86cd1
commit 88f9458c6e
+2
View File
@@ -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;
}