Fix for bug #1003 -- BusyBox should now poweroff when asked to
authorEric Andersen <andersen@codepoet.org>
Fri, 7 Jul 2000 19:30:28 +0000 (19:30 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 7 Jul 2000 19:30:28 +0000 (19:30 -0000)
do so...  Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>
 -Erik

init.c
init/init.c

diff --git a/init.c b/init.c
index 0f6a9bc9b27487b71d2f268e54abe15a5ff8e89f..35f2255b5a48b50f71f5a7c864db5aa7b1f7c7e1 100644 (file)
--- a/init.c
+++ b/init.c
@@ -887,7 +887,7 @@ extern int init_main(int argc, char **argv)
        /* Set up sig handlers  -- be sure to
         * clear all of these in run() */
        signal(SIGUSR1, halt_signal);
-       signal(SIGUSR2, reboot_signal);
+       signal(SIGUSR2, halt_signal);
        signal(SIGINT, reboot_signal);
        signal(SIGTERM, reboot_signal);
 #if defined BB_FEATURE_INIT_CHROOT
index 0f6a9bc9b27487b71d2f268e54abe15a5ff8e89f..35f2255b5a48b50f71f5a7c864db5aa7b1f7c7e1 100644 (file)
@@ -887,7 +887,7 @@ extern int init_main(int argc, char **argv)
        /* Set up sig handlers  -- be sure to
         * clear all of these in run() */
        signal(SIGUSR1, halt_signal);
-       signal(SIGUSR2, reboot_signal);
+       signal(SIGUSR2, halt_signal);
        signal(SIGINT, reboot_signal);
        signal(SIGTERM, reboot_signal);
 #if defined BB_FEATURE_INIT_CHROOT