diff options
author | 2003-03-15 00:08:41 +0000 | |
---|---|---|
committer | 2003-03-15 00:08:41 +0000 | |
commit | 3291caa852989bd52612f82d23dc603ced0b002d (patch) | |
tree | 146ac1504bb2b701cd77c4551102eec549561291 | |
parent | make fetching regs and stack trace really work (diff) | |
download | wireguard-openbsd-3291caa852989bd52612f82d23dc603ced0b002d.tar.xz wireguard-openbsd-3291caa852989bd52612f82d23dc603ced0b002d.zip |
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
-rw-r--r-- | sys/kern/kern_synch.c | 10 |
1 files changed, 2 insertions, 8 deletions
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 |