mirror of
https://github.com/troglobit/finit.git
synced 2026-11-11 16:40:48 +00:00
Remove developer debug of reboot/umount sequence
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
eeb59eb22b
commit
72a9832662
1 file changed
+1
-4
@@ -115,7 +115,7 @@ void do_shutdown(shutop_t op)
|
|||||||
_d("Sending SIGKILL to remaining processes.");
|
_d("Sending SIGKILL to remaining processes.");
|
||||||
kill(-1, SIGKILL);
|
kill(-1, SIGKILL);
|
||||||
|
|
||||||
debug = 1;
|
/* Exit plugins and API gracefully */
|
||||||
plugin_exit();
|
plugin_exit();
|
||||||
api_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 dummydev /");
|
||||||
run("/bin/mount -n -o remount,ro /");
|
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");
|
_d("%s.", op == SHUT_REBOOT ? "Rebooting" : "Halting");
|
||||||
if (op == SHUT_REBOOT)
|
if (op == SHUT_REBOOT)
|
||||||
reboot(RB_AUTOBOOT);
|
reboot(RB_AUTOBOOT);
|
||||||
|
|||||||
Reference in new issue
Block a user