Remove developer debug of reboot/umount sequence

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-07-30 15:54:37 +02:00
parent eeb59eb22b
commit 72a9832662
+1 -4
View File
@@ -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);