1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

When checking to see if the init process calls exit1(), compare p to the

initproc proc pointer instead of checking to see if the pid is 1.

Submitted by:	bde
This commit is contained in:
John Baldwin 2002-05-06 17:07:10 +00:00
parent 276c516984
commit e746d950ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96118

View File

@ -133,7 +133,7 @@ exit1(td, rv)
GIANT_REQUIRED;
p = td->td_proc;
if (p->p_pid == 1) {
if (p == initproc) {
printf("init died (signal %d, exit %d)\n",
WTERMSIG(rv), WEXITSTATUS(rv));
panic("Going nowhere without my init!");