write ptys use _the_same_ tsleep/wakeup address as read ptys due to

mistype, fixed.
This commit is contained in:
Andrey A. Chernov 1994-10-29 23:59:48 +00:00
parent 23e79aa786
commit 934051e5c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3998

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
* $Id: tty_pty.c,v 1.4 1994/09/15 19:47:16 bde Exp $
* $Id: tty_pty.c,v 1.5 1994/10/02 17:35:30 phk Exp $
*/
/*
@ -265,7 +265,7 @@ ptcwakeup(tp, flag)
}
if (flag & FWRITE) {
selwakeup(&pti->pt_selw);
wakeup((caddr_t)&tp->t_rawq.c_cf);
wakeup((caddr_t)&tp->t_rawq.c_cl);
}
}
@ -543,7 +543,7 @@ ptcwrite(dev, uio, flag)
return (EWOULDBLOCK);
return (0);
}
error = tsleep((caddr_t)&tp->t_rawq.c_cf, TTOPRI | PCATCH, ttyout, 0);
error = tsleep((caddr_t)&tp->t_rawq.c_cl, TTOPRI | PCATCH, ttyout, 0);
if (error) {
/* adjust for data copied in but not written */
uio->uio_resid += cc;