Merge in Lite2: buf fix with comparison of wrong field against EXTPROC.
Did not accept change of second argument to ioctl from int to u_long. Reviewed by: davidg & bde
This commit is contained in:
parent
7c409b8a56
commit
45fe51e9d3
@ -30,8 +30,8 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
|
||||
* $Id: tty_pty.c,v 1.35 1996/01/25 07:21:50 phk Exp $
|
||||
* @(#)tty_pty.c 8.4 (Berkeley) 2/20/95
|
||||
* $Id: tty_pty.c,v 1.38 1996/02/29 00:18:11 hsu Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -638,7 +638,7 @@ ptyioctl(dev, cmd, data, flag, p)
|
||||
}
|
||||
tp->t_lflag |= EXTPROC;
|
||||
} else {
|
||||
if ((tp->t_state & EXTPROC) &&
|
||||
if ((tp->t_lflag & EXTPROC) &&
|
||||
(pti->pt_flags & PF_PKT)) {
|
||||
pti->pt_send |= TIOCPKT_IOCTL;
|
||||
ptcwakeup(tp, FREAD);
|
||||
|
Loading…
Reference in New Issue
Block a user