DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Notes and examples for multithreaded TTY drivers

Modifying the close(D2oddi) routine

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.
© 2005 The SCO Group, Inc. All rights reserved.