diff options
author | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-12-09 22:10:18 +0000 |
---|---|---|
committer | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-12-09 22:10:18 +0000 |
commit | 2bbcec81a7457a36d3f83747d67f0a2e8ab90fcb (patch) | |
tree | c494de94d27e7d8dc8fdd43b1ca8fe6710e15eda /init | |
parent | 66f7666802a4e4209f9201f47302401579d99615 (diff) | |
download | busybox-w32-2bbcec81a7457a36d3f83747d67f0a2e8ab90fcb.tar.gz busybox-w32-2bbcec81a7457a36d3f83747d67f0a2e8ab90fcb.tar.bz2 busybox-w32-2bbcec81a7457a36d3f83747d67f0a2e8ab90fcb.zip |
findInitPid() has been implemented and it seems to work.
reboot has been changed to take advantage of findInitPid();
git-svn-id: svn://busybox.net/trunk/busybox@184 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/reboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/reboot.c b/init/reboot.c index 53a3520e1..17ec9f82f 100644 --- a/init/reboot.c +++ b/init/reboot.c | |||
@@ -26,5 +26,6 @@ | |||
26 | extern int | 26 | extern int |
27 | reboot_main(int argc, char ** argv) | 27 | reboot_main(int argc, char ** argv) |
28 | { | 28 | { |
29 | exit( kill(1, SIGUSR2)); | 29 | /* don't assume init's pid == 1 */ |
30 | exit( kill(findInitPid(), SIGUSR2)); | ||
30 | } | 31 | } |