artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c14961
)
dogetrusage() must be called with the KERNEL_LOCK held for now.
author
claudio
<claudio@openbsd.org>
Wed, 17 Apr 2024 09:41:44 +0000
(09:41 +0000)
committer
claudio
<claudio@openbsd.org>
Wed, 17 Apr 2024 09:41:44 +0000
(09:41 +0000)
OK mpi@
sys/kern/kern_resource.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_resource.c
b/sys/kern/kern_resource.c
index
9885396
..
789c980
100644
(file)
--- a/
sys/kern/kern_resource.c
+++ b/
sys/kern/kern_resource.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_resource.c,v 1.8
0 2023/09/13 14:25:49
claudio Exp $ */
+/* $OpenBSD: kern_resource.c,v 1.8
1 2024/04/17 09:41:44
claudio Exp $ */
/* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */
/*-
@@
-476,8
+476,9
@@
dogetrusage(struct proc *p, int who, struct rusage *rup)
struct process *pr = p->p_p;
struct proc *q;
- switch (who) {
+ KERNEL_ASSERT_LOCKED();
+ switch (who) {
case RUSAGE_SELF:
/* start with the sum of dead threads, if any */
if (pr->ps_ru != NULL)