findInitPid() has been implemented and it seems to work.

reboot has been changed to take advantage of findInitPid();
This commit is contained in:
John Beppu
1999-12-09 22:10:18 +00:00
parent 395b216a2e
commit f95ca97d1b
4 changed files with 39 additions and 11 deletions

View File

@ -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));
}