Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix _lwp_wakeup() so that it stands a chance of wor...



details:   https://anonhg.NetBSD.org/src/rev/6871f4c87370
branches:  trunk
changeset: 542461:6871f4c87370
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Wed Jan 29 23:27:54 2003 +0000

description:
Fix _lwp_wakeup() so that it stands a chance of working (although it
turns out to be insufficent for signal-level interruption of system
calls. guess we need _lwp_kill(), ugh).

diffstat:

 sys/kern/kern_lwp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r b4e3906a9c12 -r 6871f4c87370 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c       Wed Jan 29 22:50:08 2003 +0000
+++ b/sys/kern/kern_lwp.c       Wed Jan 29 23:27:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lwp.c,v 1.3 2003/01/28 02:20:35 nathanw Exp $     */
+/*     $NetBSD: kern_lwp.c,v 1.4 2003/01/29 23:27:54 nathanw Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -307,10 +307,10 @@
        if (t->l_stat != LSSLEEP)
                return (ENODEV);
 
-       if ((l->l_flag & L_SINTR) == 0)
+       if ((t->l_flag & L_SINTR) == 0)
                return (EBUSY);
 
-       setrunnable(l);
+       setrunnable(t);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index