From c97ec34370f66771713809ab7da19b7fe923cffe Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 3 Apr 2001 18:01:51 +0000 Subject: A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Now you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior needing to be a reboot. --- init/reboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init/reboot.c') diff --git a/init/reboot.c b/init/reboot.c index 3e5f2382c..74d2cf643 100644 --- a/init/reboot.c +++ b/init/reboot.c @@ -28,9 +28,9 @@ extern int reboot_main(int argc, char **argv) { #ifdef BB_FEATURE_LINUXRC /* don't assume init's pid == 1 */ - return(kill(*(find_pid_by_name("init")), SIGINT)); + return(kill(*(find_pid_by_name("init")), SIGTERM)); #else - return(kill(1, SIGINT)); + return(kill(1, SIGTERM)); #endif } -- cgit v1.2.3