init: fix waitforpid().

The kill(2) should be checking whether `pid` still exists, not the
process that wait(2) just told us has exited.
1 file changed