We wouldn't want to kill init if our parent died...

Spotted by:	davidg
This commit is contained in:
Poul-Henning Kamp 1995-10-09 09:51:17 +00:00
parent 3c0d1798b1
commit b6078f2906
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11370

View File

@ -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*/