SCCS-vsn: sys/kern/tty.c 4.17
-/* tty.c 4.16 82/01/15 */
+/* tty.c 4.17 82/01/17 */
/*
* TTY subroutines common to more than one line discipline
/*
* TTY subroutines common to more than one line discipline
tp->t_state |= TS_ASLEEP;
sleep((caddr_t)&tp->t_outq, TTOPRI);
}
tp->t_state |= TS_ASLEEP;
sleep((caddr_t)&tp->t_outq, TTOPRI);
}
- flushtty(tp, FREAD|FWRITE);
if (rw & FWRITE) {
wakeup((caddr_t)&tp->t_outq);
tp->t_state &= ~TS_TTSTOP;
if (rw & FWRITE) {
wakeup((caddr_t)&tp->t_outq);
tp->t_state &= ~TS_TTSTOP;
- (*cdevsw[major(tp->t_dev)].d_stop)(tp);
+ (*cdevsw[major(tp->t_dev)].d_stop)(tp, rw);
while (getc(&tp->t_outq) >= 0)
;
}
while (getc(&tp->t_outq) >= 0)
;
}