*BSD News Article 19170


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09.info.win.tue.nl!wzv.win.tue.nl!gvr.win.tue.nl!guido
From: guido@gvr.win.tue.nl (Guido van Rooij)
Newsgroups: comp.os.386bsd.misc
Subject: Re: Using the sio ports with a Modem
Date: 4 Aug 1993 18:06:26 GMT
Organization: Eindhoven University of Technology, The Netherlands
Lines: 41
Message-ID: <23otr2$puk@wzv.win.tue.nl>
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>
NNTP-Posting-Host: gvr.win.tue.nl

peter@NeoSoft.com (Peter da Silva) writes:

>In article <1993Aug4.072326.27151@cnplss5.cnps.philips.nl> rooij@bashful.isp.cft.philips.nl (Guido van Rooij) writes:
>> peter@NeoSoft.com (Peter da Silva) writes:
>> >I'm sorta confused here about the semantics. If clocal is set, the value
>> >of DCD is ignored, so how do you ever get signal delivery? Don't you need

>> You are right, I meant if clocal is clear.

>> >to clear clocal *and* set the control terminal?

>> No, look in tty.c, function ttymodem().

>I'll do that, but I'm really talking in a broader philosophical sense. So far
>as I can recall, you've never been able to get a SIGHUP on any version of UNIX
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.

>unless both of those conditions are true. It's not clear to me what the effects
>of sending SIGHUP to other processes than the ones in the process group for
>that terminal are.

>For example, if I'm dialed in via one modem, dial out via another, how does
>it know which line hung up?
>-- 
>Peter da Silva.  <peter@sugar.neosoft.com>.
> `-_-'   Hefur thu fadhmadh ulfinn i dag?
>  'U`    
>"Det er min ledsager, det er ikke drikkepenge."

-Guido
-- 
Guido van Rooij                 |  Internet: guido@gvr.win.tue.nl
Bisschopsmolen 16               |  Phone:    ++31.40.461433
5612 DS Eindhoven               |  ((12+144+20)+3*sqrt(4))/7 
The Netherlands                 |    +(5*11)=9^2+0