findInitPid() has been implemented and it seems to work.
reboot has been changed to take advantage of findInitPid();
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user