From 0d44f0de9eacf687182ebebfcb1f9496dbf3bc32 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 27 Jun 2013 19:14:03 +0200 Subject: get rid of sleep() calls Signed-off-by: John Crispin --- signal.c | 1 - state.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/signal.c b/signal.c index b62da0a..0bb881e 100644 --- a/signal.c +++ b/signal.c @@ -26,7 +26,6 @@ static void do_reboot(void) LOG("reboot\n"); fflush(stderr); sync(); - sleep(1); reboot(RB_AUTOBOOT); while (1) ; diff --git a/state.c b/state.c index 618d758..cf0c81d 100644 --- a/state.c +++ b/state.c @@ -63,12 +63,11 @@ static void state_enter(void) case STATE_SHUTDOWN: LOG("- shutdown -\n"); procd_inittab_run("shutdown"); + sync(); break; case STATE_HALT: LOG("- reboot -\n"); - sync(); - sleep(1); reboot(reboot_event); break; -- cgit v1.2.3