Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!sequoia!ultima!kralizec.zeta.org.au!kralizec.zeta.org.au!not-for-mail From: bde@kralizec.zeta.org.au (Bruce Evans) Newsgroups: comp.os.386bsd.misc Subject: Re: Using the sio ports with a Modem Date: 7 Aug 1993 08:10:53 +1000 Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis Lines: 19 Message-ID: <23uktdINN47j@kralizec.zeta.org.au> References: <1993Aug3.092159.1696@cnplss5.cnps.philips.nl> <CB76y1.3xG@sugar.NeoSoft.COM> <1993Aug4.072326.27151@cnplss5.cnps.philips.nl> <CB8G2w.B7v@sugar.NeoSoft.COM> <23otr2$puk@wzv.win.tue.nl> NNTP-Posting-Host: kralizec.zeta.org.au In <23otr2$puk@wzv.win.tue.nl> guido@gvr.win.tue.nl (Guido van Rooij) writes: >Oopps..I was mistaken: >if (tp->t_state&TS_ISOPEN && (tp->t_cflag&CLOCAL) == 0) { > if (tp->t_session && tp->t_session->s_leader) > psignal(tp->t_session->s_leader, SIGHUP); > >But what is strange (I think) is that TS_CARR_ON is always cleared when >the carrier is lost, and not only when carrier lost and -clocal. It's not strange. TS_CARR_ON always follows the h/w carrier (unless the driver has confused things by introducing a soft carrier). Almost everywhere that tty.c tests TS_CARR_ON, it also tests CLOCAL and ignores TS_CARR_ON if CLOCAL is set. The two places where it doesn't test both (TIOCCONS and tputchar()) probably contain bugs. I think users can print without carrier but serial console messages get discarded :-(). -- Bruce Evans bde@kralizec.zeta.org.au