We wouldn't want to kill init if our parent died...
Spotted by: davidg
This commit is contained in:
parent
3c0d1798b1
commit
b6078f2906
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11370
@ -137,12 +137,14 @@ tipout()
|
||||
intTERM();
|
||||
/*NOTREACHED*/
|
||||
} else if (cnt == 0 && errno == ENOENT) {
|
||||
kill(getppid(),SIGUSR1);
|
||||
if (getppid() != 1)
|
||||
kill(getppid(),SIGUSR1);
|
||||
sigblock(sigmask(SIGTERM));
|
||||
intTERM();
|
||||
/*NOTREACHED*/
|
||||
} else if (cnt < 0) {
|
||||
kill(getppid(),SIGUSR1);
|
||||
if (getppid() != 1)
|
||||
kill(getppid(),SIGUSR1);
|
||||
sigblock(sigmask(SIGTERM));
|
||||
intTERM();
|
||||
/*NOTREACHED*/
|
||||
|
Loading…
Reference in New Issue
Block a user