actually we shouldn't hold kernel_lock while calling postsig().

This commit is contained in:
chs 2002-08-06 06:18:24 +00:00
parent 0924752f24
commit 2928d8ba05
1 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: userret.h,v 1.1 2002/08/02 03:46:43 chs Exp $ */ /* $NetBSD: userret.h,v 1.2 2002/08/06 06:18:24 chs Exp $ */
/* /*
* Copyright (C) 1995, 1996 Wolfgang Solfrank. * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -44,9 +44,7 @@ userret(struct proc *p, struct trapframe *frame)
/* Take pending signals. */ /* Take pending signals. */
while ((sig = CURSIG(p)) != 0) { while ((sig = CURSIG(p)) != 0) {
KERNEL_PROC_LOCK(p);
postsig(sig); postsig(sig);
KERNEL_PROC_UNLOCK(p);
} }
pcb = &p->p_addr->u_pcb; pcb = &p->p_addr->u_pcb;