summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.c2
-rw-r--r--init/init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.c b/init.c
index 0f6a9bc..35f2255 100644
--- 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
diff --git a/init/init.c b/init/init.c
index 0f6a9bc..35f2255 100644
--- a/init/init.c
+++ b/init/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