Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/include add missing postsig() call.



details:   https://anonhg.NetBSD.org/src/rev/6feaff9df141
branches:  trunk
changeset: 526222:6feaff9df141
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Apr 28 12:51:14 2002 +0000

description:
add missing postsig() call.
I don't know whether this is true fix or not.

diffstat:

 sys/arch/sh3/include/userret.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r ebb4de3977d3 -r 6feaff9df141 sys/arch/sh3/include/userret.h
--- a/sys/arch/sh3/include/userret.h    Sun Apr 28 11:52:43 2002 +0000
+++ b/sys/arch/sh3/include/userret.h    Sun Apr 28 12:51:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: userret.h,v 1.1 2002/03/17 14:06:38 uch Exp $  */
+/*     $NetBSD: userret.h,v 1.2 2002/04/28 12:51:14 msaitoh Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -48,6 +48,11 @@
 static __inline void
 userret(struct proc *p)
 {
+       int sig;
+
+       /* Take pending signals. */
+       while ((sig = CURSIG(p)) != 0)
+               postsig(sig);
 
        curcpu()->ci_schedstate.spc_curpriority = p->p_priority = p->p_usrpri;
 }



Home | Main Index | Thread Index | Old Index