Wed Jun 17 21:34:04 2009 UTC ()
Pull up following revision(s) (requested by plunky in ticket #807):
	sys/kern/tty_pty.c: revision 1.117
Writes on the controlling tty were not being awoken from blocks,
use the correct condvar to make this happen.
this fixes PR/41566


(bouyer)
diff -r1.112 -r1.112.6.1 src/sys/kern/tty_pty.c

cvs diff -r1.112 -r1.112.6.1 src/sys/kern/tty_pty.c (expand / switch to context diff)
--- src/sys/kern/tty_pty.c 2008/09/03 16:47:34 1.112
+++ src/sys/kern/tty_pty.c 2009/06/17 21:34:04 1.112.6.1
@@ -1,4 +1,4 @@
-/*	$NetBSD: tty_pty.c,v 1.112 2008/09/03 16:47:34 drochner Exp $	*/
+/*	$NetBSD: tty_pty.c,v 1.112.6.1 2009/06/17 21:34:04 bouyer Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.112 2008/09/03 16:47:34 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.112.6.1 2009/06/17 21:34:04 bouyer Exp $");
 
 #include "opt_compat_sunos.h"
 #include "opt_ptm.h"
@@ -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 */