From owner-freebsd-current Sat May 23 10:18:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA23395 for freebsd-current-outgoing; Sat, 23 May 1998 10:18:20 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA23385 for ; Sat, 23 May 1998 10:18:17 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id SAA16534; Sat, 23 May 1998 18:15:00 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199805231715.SAA16534@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Bruce Evans cc: brian@Awfulhak.org, julian@whistle.com, archie@whistle.com, freebsd-current@FreeBSD.ORG Subject: Re: **HEADS UP** user-ppp has changed ! In-reply-to: Your message of "Sun, 24 May 1998 00:01:03 +1000." <199805231401.AAA27232@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 23 May 1998 18:14:59 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >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 , , 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