From aaf23663cac3ee7d99b8dd91ddf9616262bbe74b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 15 Mar 2003 00:08:42 +0000 Subject: kill 10 minute non-root suffers stuff. noted that we still have this, by matthieu, who noted it now that X is not running as root. ok nordin --- sys/kern/kern_synch.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sys/kern/kern_synch.c') diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index d2f08bed8f6..0e7849830f7 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.46 2002/10/15 20:17:22 art Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.47 2003/03/15 00:08:41 deraadt Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -725,8 +725,7 @@ mi_switch() /* * Check if the process exceeds its cpu resource allocation. - * If over max, kill it. In any case, if it has run for more - * than 10 minutes, reduce priority to give others a chance. + * If over max, kill it. */ rlim = &p->p_rlimit[RLIMIT_CPU]; if (s >= rlim->rlim_cur) { @@ -738,11 +737,6 @@ mi_switch() rlim->rlim_cur += 5; } } - if (s > 10 * 60 && p->p_ucred->cr_uid && p->p_nice == NZERO) { - p->p_nice = NZERO + 4; - resetpriority(p); - } - /* * Process is about to yield the CPU; clear the appropriate -- cgit v1.2.3