diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-12-09 07:57:58 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-12-09 07:57:58 +0000 |
commit | f0758dd6ba19f6039b6fed7da4ca2844b8c1032d (patch) | |
tree | 0c69d4ed535388e7050478a8e473ce4ac82a6c25 | |
parent | 1792f8c48926450501e19d32e78e140bcb9661c6 (diff) | |
download | busybox-w32-f0758dd6ba19f6039b6fed7da4ca2844b8c1032d.tar.gz busybox-w32-f0758dd6ba19f6039b6fed7da4ca2844b8c1032d.tar.bz2 busybox-w32-f0758dd6ba19f6039b6fed7da4ca2844b8c1032d.zip |
* Fixed rebooting from init. I'd left some debugging code in
which blocked reboots. Oops.
-Erik
-rw-r--r-- | Changelog | 2 | ||||
-rw-r--r-- | init.c | 2 | ||||
-rw-r--r-- | init/init.c | 2 |
3 files changed, 2 insertions, 4 deletions
@@ -12,6 +12,8 @@ | |||
12 | * kill now behaves itself properly, added 'kill -l' to list signals | 12 | * kill now behaves itself properly, added 'kill -l' to list signals |
13 | * 'ls -l' was failing on long directories, since my_getid was leaking | 13 | * 'ls -l' was failing on long directories, since my_getid was leaking |
14 | one file descriptor per file. Oops. | 14 | one file descriptor per file. Oops. |
15 | * Fixed rebooting from init. I'd left some debugging code in | ||
16 | which blocked reboots. | ||
15 | 17 | ||
16 | -Erik Andrsen | 18 | -Erik Andrsen |
17 | 19 | ||
@@ -418,7 +418,6 @@ static void halt_signal(int sig) | |||
418 | "The system is halted. Press CTRL-ALT-DEL or turn off power\r\n"); | 418 | "The system is halted. Press CTRL-ALT-DEL or turn off power\r\n"); |
419 | sync(); | 419 | sync(); |
420 | #ifndef DEBUG_INIT | 420 | #ifndef DEBUG_INIT |
421 | while (1) sleep(1); | ||
422 | reboot(RB_HALT_SYSTEM); | 421 | reboot(RB_HALT_SYSTEM); |
423 | //reboot(RB_POWER_OFF); | 422 | //reboot(RB_POWER_OFF); |
424 | #endif | 423 | #endif |
@@ -430,7 +429,6 @@ static void reboot_signal(int sig) | |||
430 | shutdown_system(); | 429 | shutdown_system(); |
431 | message(CONSOLE, "Please stand by while rebooting the system.\r\n"); | 430 | message(CONSOLE, "Please stand by while rebooting the system.\r\n"); |
432 | sync(); | 431 | sync(); |
433 | while (1) sleep(1); | ||
434 | #ifndef DEBUG_INIT | 432 | #ifndef DEBUG_INIT |
435 | reboot(RB_AUTOBOOT); | 433 | reboot(RB_AUTOBOOT); |
436 | #endif | 434 | #endif |
diff --git a/init/init.c b/init/init.c index 164ee69a3..d2e9a7e97 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -418,7 +418,6 @@ static void halt_signal(int sig) | |||
418 | "The system is halted. Press CTRL-ALT-DEL or turn off power\r\n"); | 418 | "The system is halted. Press CTRL-ALT-DEL or turn off power\r\n"); |
419 | sync(); | 419 | sync(); |
420 | #ifndef DEBUG_INIT | 420 | #ifndef DEBUG_INIT |
421 | while (1) sleep(1); | ||
422 | reboot(RB_HALT_SYSTEM); | 421 | reboot(RB_HALT_SYSTEM); |
423 | //reboot(RB_POWER_OFF); | 422 | //reboot(RB_POWER_OFF); |
424 | #endif | 423 | #endif |
@@ -430,7 +429,6 @@ static void reboot_signal(int sig) | |||
430 | shutdown_system(); | 429 | shutdown_system(); |
431 | message(CONSOLE, "Please stand by while rebooting the system.\r\n"); | 430 | message(CONSOLE, "Please stand by while rebooting the system.\r\n"); |
432 | sync(); | 431 | sync(); |
433 | while (1) sleep(1); | ||
434 | #ifndef DEBUG_INIT | 432 | #ifndef DEBUG_INIT |
435 | reboot(RB_AUTOBOOT); | 433 | reboot(RB_AUTOBOOT); |
436 | #endif | 434 | #endif |