summaryrefslogtreecommitdiff
path: root/reboot.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-03 18:01:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-03 18:01:51 +0000
commitc97ec34370f66771713809ab7da19b7fe923cffe (patch)
tree113cfd14600fe4ccb65e392eeb06e368df13f1ef /reboot.c
parent0f0c0b41ced8c30d382a0490719c79371260b9d1 (diff)
downloadbusybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.tar.gz
busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.tar.bz2
busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.zip
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.
Diffstat (limited to 'reboot.c')
-rw-r--r--reboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reboot.c b/reboot.c
index 3e5f2382c..74d2cf643 100644
--- a/reboot.c
+++ b/reboot.c
@@ -28,9 +28,9 @@ extern int reboot_main(int argc, char **argv)
28{ 28{
29#ifdef BB_FEATURE_LINUXRC 29#ifdef BB_FEATURE_LINUXRC
30 /* don't assume init's pid == 1 */ 30 /* don't assume init's pid == 1 */
31 return(kill(*(find_pid_by_name("init")), SIGINT)); 31 return(kill(*(find_pid_by_name("init")), SIGTERM));
32#else 32#else
33 return(kill(1, SIGINT)); 33 return(kill(1, SIGTERM));
34#endif 34#endif
35} 35}
36 36