From a2953547e345eb6dd4e48474ca1e48082d3d564f Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 3 Jul 2013 15:55:26 +0200 Subject: add 2 second sleep before rebooting stderr is lost without this whena crash happens Signed-off-by: John Crispin --- signal.c | 1 + 1 file changed, 1 insertion(+) 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) ; -- cgit v1.2.3