Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
This commit is contained in:
Peng Gao 2016-07-13 23:32:38 +08:00
parent d49ece5a83
commit 765df7eed0
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ func (l *linuxStandardInit) Init() error {
return err
}
// compare the parent from the inital start of the init process and make sure that it did not change.
// if the parent changes that means it died and we were reparened to something else so we should
// if the parent changes that means it died and we were reparented to something else so we should
// just kill ourself and not cause problems for someone else.
if syscall.Getppid() != l.parentPid {
return syscall.Kill(syscall.Getpid(), syscall.SIGKILL)