diff --git a/sig.c b/sig.c index c3a902f7..01149183 100644 --- a/sig.c +++ b/sig.c @@ -115,7 +115,7 @@ void do_shutdown(shutop_t op) _d("Sending SIGKILL to remaining processes."); kill(-1, SIGKILL); - debug = 1; + /* Exit plugins and API gracefully */ plugin_exit(); api_exit(); @@ -148,9 +148,6 @@ void do_shutdown(shutop_t op) run("/bin/mount -n -o remount,ro dummydev /"); run("/bin/mount -n -o remount,ro /"); - _e("PID %d: %s ...", getpid(), op == SHUT_REBOOT ? "Rebooting" : "Halting"); - do_sleep(5); - _d("%s.", op == SHUT_REBOOT ? "Rebooting" : "Halting"); if (op == SHUT_REBOOT) reboot(RB_AUTOBOOT);