tech-kern archive

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

Re: Kern/41566, Problem with pty(4) handling under NetBSD-5 filed.



        Hello.  The following patch seems to fix the problem for me.  Can you
try it and tell me if it works for you?    If so, I'll submit it to the bug
report. Then, could we get it looked at and committed as well as pulled up
to the 5.x branch?
Of course, if it presents a bigger problem, I'm happy to entertain
alternate patches.
-thanks
-Brian


Index: tty_pty.c
===================================================================
RCS file: /cvsroot/src/sys/kern/tty_pty.c,v
retrieving revision 1.112
diff -u -r1.112 tty_pty.c
--- tty_pty.c   3 Sep 2008 16:47:34 -0000       1.112
+++ tty_pty.c   11 Jun 2009 20:11:42 -0000
@@ -779,7 +779,7 @@
                error = cnt == 0 ? EWOULDBLOCK : 0;
                goto out;
        }
-       error = cv_wait_sig(&tp->t_rawcv, &tty_lock);
+       error = cv_wait_sig(&tp->t_rawcvf, &tty_lock);
        mutex_spin_exit(&tty_lock);
        if (error) {
                /* adjust for data copied in but not written */


Home | Main Index | Thread Index | Old Index