mirror of
https://github.com/openbsd/src.git
synced 2026-04-28 08:07:03 +00:00
Use pr instead of p->p_p like everywhere else in exit1.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: kern_exit.c,v 1.237 2024/10/08 12:02:24 claudio Exp $ */
|
||||
/* $OpenBSD: kern_exit.c,v 1.238 2024/10/15 11:54:07 claudio Exp $ */
|
||||
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
|
||||
|
||||
/*
|
||||
@@ -172,7 +172,7 @@ exit1(struct proc *p, int xexit, int xsig, int flags)
|
||||
|
||||
/* proc is off ps_threads list so update accounting of process now */
|
||||
tuagg_add_runtime();
|
||||
tuagg_add_process(p->p_p, p);
|
||||
tuagg_add_process(pr, p);
|
||||
|
||||
if ((p->p_flag & P_THREAD) == 0) {
|
||||
/* main thread gotta wait because it has the pid, et al */
|
||||
|
||||
Reference in New Issue
Block a user