From: Eric Andersen Date: Fri, 7 Jul 2000 19:30:28 +0000 (-0000) Subject: Fix for bug #1003 -- BusyBox should now poweroff when asked to X-Git-Tag: 0_46~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c95a28461b46f05787c07883c44319f7bfe33e3;p=oweals%2Fbusybox.git Fix for bug #1003 -- BusyBox should now poweroff when asked to do so... Fix thanks to Matt Kraai -Erik --- diff --git a/init.c b/init.c index 0f6a9bc9b..35f2255b5 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 0f6a9bc9b..35f2255b5 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