diff options
-rw-r--r-- | signal.c | 1 | ||||
-rw-r--r-- | state.c | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -26,7 +26,6 @@ static void do_reboot(void) LOG("reboot\n"); fflush(stderr); sync(); - sleep(1); reboot(RB_AUTOBOOT); while (1) ; @@ -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; |