summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-12 17:49:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-12 17:49:38 +0000
commit54bc7f013030e60ef0e9fa59e04552941cc2eca0 (patch)
tree0ee8348f9c2c2cc2bc5f2c3e8205e5204d253679 /sys/kern/kern_exit.c
parentd2d8dfb1c25027fe4dd7a302e4fef93becc6e9e9 (diff)
in scheduler, bias parents for child cpu usage; ross@ghs.com
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 245e6c62015..e12833d2947 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.16 1999/03/02 22:19:09 niklas Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.17 1999/03/12 17:49:37 deraadt Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -368,6 +368,10 @@ loop:
wakeup((caddr_t)t);
return (0);
}
+
+ /* Charge us for our child's sins */
+ curproc->p_estcpu = min(curproc->p_estcpu +
+ p->p_estcpu, UCHAR_MAX);
p->p_xstat = 0;
ruadd(&q->p_stats->p_cru, p->p_ru);
FREE(p->p_ru, M_ZOMBIE);