summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2007-01-09 08:43:25 +0000
committerart <art@openbsd.org>2007-01-09 08:43:25 +0000
commit9565b858ebd803dc5a382591d24b5ba8992ba6b2 (patch)
tree7421246568272487468e9e2660f5aca3aac3c10d
parentAccept empty command, from Matthew R. Dempsky; ok deraadt@ millert@ (diff)
downloadwireguard-openbsd-9565b858ebd803dc5a382591d24b5ba8992ba6b2.tar.xz
wireguard-openbsd-9565b858ebd803dc5a382591d24b5ba8992ba6b2.zip
Miod used a too large hatchet when trimming userret in 1.80.
Restore user priority before returning to userland. (other architectures checked and seem to do the right thing) miod@ ok
-rw-r--r--sys/arch/i386/i386/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index f4f84c0a2f4..37c2fd28b26 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.80 2006/12/24 20:30:35 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.81 2007/01/09 08:43:25 art Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -115,7 +115,7 @@ userret(struct proc *p)
while ((sig = CURSIG(p)) != 0)
postsig(sig);
- p->p_cpu->ci_schedstate.spc_curpriority = p->p_priority;
+ p->p_cpu->ci_schedstate.spc_curpriority = p->p_priority = p->p_usrpri;
}
char *trap_type[] = {