diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/halt.c | 3 | ||||
-rw-r--r-- | init/reboot.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/init/halt.c b/init/halt.c index ecc6e8f..23eb23c 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 17ec9f8..ff2c6ad 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)); } |