aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-12-09 22:39:55 +0000
committerEric Andersen <andersen@codepoet.org>1999-12-09 22:39:55 +0000
commit6805d5d69e9c2be264e62cf53c86ca3e5a929d31 (patch)
tree2ab43322a4fc33782d322ef029d33a46f3e8c5dd /init
parentf95ca97d1bb94307ee0b8ed95d329dc9d6ccec85 (diff)
downloadbusybox-6805d5d69e9c2be264e62cf53c86ca3e5a929d31.tar.gz
Adjustments for Johns init stuff,
-Erik
Diffstat (limited to 'init')
-rw-r--r--init/halt.c3
-rw-r--r--init/reboot.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/init/halt.c b/init/halt.c
index ecc6e8f30..23eb23c30 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -26,6 +26,7 @@
extern int
halt_main(int argc, char ** argv)
{
- exit( kill(1, SIGUSR1));
+ /* don't assume init's pid == 1 */
+ exit( kill(findInitPid(), SIGUSR1));
}
diff --git a/init/reboot.c b/init/reboot.c
index 17ec9f82f..ff2c6ad18 100644
--- a/init/reboot.c
+++ b/init/reboot.c
@@ -26,6 +26,6 @@
extern int
reboot_main(int argc, char ** argv)
{
- /* don't assume init's pid == 1 */
- exit( kill(findInitPid(), SIGUSR2));
+ /* don't assume init's pid == 1 */
+ exit( kill(findInitPid(), SIGUSR2));
}