From: John Crispin Date: Wed, 3 Jul 2013 13:55:26 +0000 (+0200) Subject: add 2 second sleep before rebooting X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a2953547e345eb6dd4e48474ca1e48082d3d564f;p=oweals%2Fprocd.git add 2 second sleep before rebooting stderr is lost without this whena crash happens Signed-off-by: John Crispin --- diff --git a/signal.c b/signal.c index 0bb881e..ebaf7bc 100644 --- a/signal.c +++ b/signal.c @@ -26,6 +26,7 @@ static void do_reboot(void) LOG("reboot\n"); fflush(stderr); sync(); + sleep(2); reboot(RB_AUTOBOOT); while (1) ;