Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 1998 18:14:59 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        brian@Awfulhak.org, julian@whistle.com, archie@whistle.com, freebsd-current@FreeBSD.ORG
Subject:   Re: **HEADS UP** user-ppp has changed ! 
Message-ID:  <199805231715.SAA16534@awfulhak.org>
In-Reply-To: Your message of "Sun, 24 May 1998 00:01:03 %2B1000." <199805231401.AAA27232@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help

> >I've now tested against mpd for a single link.  Unfortunately, ppp  
> >still has a known bug playing server mode.  It can't continue to use 
> >real tty device descriptors after they've been passed through a local 
> >socket (via SCM_RIGHTS) - as soon as the controlling process group 
> >goes away, a d_close happens at the device level despite the open 
> >descriptor.  AFAICT this is *not* just a descriptor-passing-through-socket 
> >bug - my diagnostics see the devices' d_close being called more than 
> >once even before the descriptor has had anything special done to it.
> >See my unanswered posting to -hackers with a subject line ``SCM_RIGHTS 
> >& session ids''....
> 
> Access to a controlling terminal is revoked when its controlling process
> goes away.  See kern_exit.c.

Is there any way of avoiding this ?  Perhaps relinquishing terminal 
control up front, *then* passing the descriptor ?

The only other alternative is to keep a `/bin/cat' running - in which 
case I may as well do the `two /bin/cat' approach....  that way they 
get a SIGPIPE when something goes wrong and everything dies nicely.

> Bruce

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805231715.SAA16534>