mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04: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:
parent
276c516984
commit
e746d950ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue