diff options
author | ache <ache@FreeBSD.org> | 1994-10-29 23:59:48 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-29 23:59:48 +0000 |
commit | 4f8e59373e7703a7d8d7a6eff9cdd7c0eab750a8 (patch) | |
tree | 569d473b8da10d820e2cee825c420d823e042492 /sys/kern/tty_pty.c | |
parent | ec318c32c37b7058e6dbb59486dca4b4cc0efc73 (diff) | |
download | FreeBSD-src-4f8e59373e7703a7d8d7a6eff9cdd7c0eab750a8.zip FreeBSD-src-4f8e59373e7703a7d8d7a6eff9cdd7c0eab750a8.tar.gz |
write ptys use _the_same_ tsleep/wakeup address as read ptys due to
mistype, fixed.
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index a2d16ee..31a0673 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -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 @@ block: 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; |