There is no need to explicitly call ttwakeup() and ttwwakeup() after
ttyclose() has been called. It's already been done once by ttyclose, and probably once by the line-discipline too.
This commit is contained in:
parent
92b3fb2908
commit
a1cda79464
@ -587,8 +587,6 @@ dcons_detach(int port)
|
||||
printf("dcons: still opened\n");
|
||||
(*linesw[tp->t_line].l_close)(tp, 0);
|
||||
ttyclose(tp);
|
||||
ttwakeup(tp);
|
||||
ttwwakeup(tp);
|
||||
}
|
||||
/* XXX
|
||||
* must wait until all device are closed.
|
||||
|
@ -456,8 +456,6 @@ siodetach(dev)
|
||||
device_printf(dev, "still open, forcing close\n");
|
||||
(*linesw[com->tp->t_line].l_close)(com->tp, 0);
|
||||
ttyclose(com->tp);
|
||||
ttwakeup(com->tp);
|
||||
ttwwakeup(com->tp);
|
||||
} else {
|
||||
if (com->ibuf != NULL)
|
||||
free(com->ibuf, M_DEVBUF);
|
||||
|
@ -442,8 +442,6 @@ bad:
|
||||
if (tp->t_state & TS_ISOPEN) {
|
||||
(*linesw[tp->t_line].l_close)(tp, 0);
|
||||
ttyclose(tp);
|
||||
ttwakeup(tp);
|
||||
ttwwakeup(tp);
|
||||
}
|
||||
}
|
||||
destroy_dev(sc->dev[i]);
|
||||
@ -478,8 +476,6 @@ USB_DETACH(ubser)
|
||||
if (tp->t_state & TS_ISOPEN) {
|
||||
(*linesw[tp->t_line].l_close)(tp, 0);
|
||||
ttyclose(tp);
|
||||
ttwakeup(tp);
|
||||
ttwwakeup(tp);
|
||||
}
|
||||
}
|
||||
destroy_dev(sc->dev[i]);
|
||||
|
@ -215,8 +215,6 @@ ucom_detach(struct ucom_softc *sc)
|
||||
"still open, forcing close\n");
|
||||
(*linesw[tp->t_line].l_close)(tp, 0);
|
||||
ttyclose(tp);
|
||||
ttwakeup(tp);
|
||||
ttwwakeup(tp);
|
||||
}
|
||||
} else {
|
||||
DPRINTF(("ucom_detach: no tty\n"));
|
||||
|
@ -784,8 +784,6 @@ siodetach(dev)
|
||||
device_printf(dev, "still open, forcing close\n");
|
||||
(*linesw[com->tp->t_line].l_close)(com->tp, 0);
|
||||
ttyclose(com->tp);
|
||||
ttwakeup(com->tp);
|
||||
ttwwakeup(com->tp);
|
||||
} else {
|
||||
if (com->ibuf != NULL)
|
||||
free(com->ibuf, M_DEVBUF);
|
||||
|
@ -784,8 +784,6 @@ siodetach(dev)
|
||||
device_printf(dev, "still open, forcing close\n");
|
||||
(*linesw[com->tp->t_line].l_close)(com->tp, 0);
|
||||
ttyclose(com->tp);
|
||||
ttwakeup(com->tp);
|
||||
ttwwakeup(com->tp);
|
||||
} else {
|
||||
if (com->ibuf != NULL)
|
||||
free(com->ibuf, M_DEVBUF);
|
||||
|
Loading…
x
Reference in New Issue
Block a user