diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-03-07 07:07:14 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-03-07 07:07:14 +0000 |
commit | 2fbec6a38212aa87373191afcd529acf2e335d70 (patch) | |
tree | 19134d6b45bcbcd9780b8b3c2d218724d57525c0 /sys/kern/kern_sig.c | |
parent | 0fa41f93507e1ea1c5c328bbf53dbc339546412c (diff) |
The scheduling 'nice' value is per-process, not per-thread, so move it
into struct process.
ok tedu@ deraadt@
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index a672064a4d1..3d900be04b4 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.116 2010/07/26 01:56:27 guenther Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.117 2011/03/07 07:07:13 guenther Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -858,8 +858,8 @@ ptsignal(struct proc *p, int signum, enum signal_type type) else { action = SIG_DFL; - if (prop & SA_KILL && p->p_nice > NZERO) - p->p_nice = NZERO; + if (prop & SA_KILL && p->p_p->ps_nice > NZERO) + p->p_p->ps_nice = NZERO; /* * If sending a tty stop signal to a member of an |