|
|
Only minor changes are necessary in the
close(D2oddi)
routine.
You need to change the line discipline call
and reset the tp->t_state
flag:
/* replacing: (*linesw[tp->t_line].l_close) (tp); */ run_ld(tp, DIST_LINESW_CLOSE); ... s = tc_tlock(tp); tp->t_state &=~ (CARR_ON | WOPEN); tc_tunlock(tp,s);As before, critical code must be protected.