diff options
author | John Beppu | 1999-12-09 22:10:18 +0000 |
---|---|---|
committer | John Beppu | 1999-12-09 22:10:18 +0000 |
commit | f95ca97d1bb94307ee0b8ed95d329dc9d6ccec85 (patch) | |
tree | c494de94d27e7d8dc8fdd43b1ca8fe6710e15eda /init | |
parent | 395b216a2eb70ea2796556c06be01261de993687 (diff) | |
download | busybox-f95ca97d1bb94307ee0b8ed95d329dc9d6ccec85.zip busybox-f95ca97d1bb94307ee0b8ed95d329dc9d6ccec85.tar.gz |
findInitPid() has been implemented and it seems to work.
reboot has been changed to take advantage of findInitPid();
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 53a3520..17ec9f8 100644 --- a/init/reboot.c +++ b/init/reboot.c @@ -26,5 +26,6 @@ extern int reboot_main(int argc, char ** argv) { - exit( kill(1, SIGUSR2)); + /* don't assume init's pid == 1 */ + exit( kill(findInitPid(), SIGUSR2)); } |