From owner-freebsd-hackers Sun Jan 18 12:49:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA11584 for hackers-outgoing; Sun, 18 Jan 1998 12:49:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA11517 for ; Sun, 18 Jan 1998 12:49:16 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id OAA08843; Sun, 18 Jan 1998 14:56:02 GMT (envelope-from brian@Awfulhak.org) Message-Id: <199801181456.OAA08843@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Frank Mayhar cc: hackers@FreeBSD.ORG Subject: Re: CLOCAL in user-mode PPP???? In-reply-to: Your message of "Fri, 16 Jan 1998 13:56:58 PST." <199801162156.NAA04169@exit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 18 Jan 1998 14:56:02 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > (I'm trusting that the list isn't dead. I'm afraid it is.) > > I'm looking at the user-mode PPP source. I have a problem where dialup > PPP sessions aren't being hung up when the user quits, under FreeBSD > 2.2.5-STABLE (the very latest bits). It turns out that user-mode PPP is > setting CLOCAL on the device. > > This seems stupid. > > Why does it set CLOCAL? Why doesn't it want to let you hang up on it? I'm > in the process of hacking my local copy to _not_ set CLOCAL, which is what > I apparently did for FreeBSD 2.1 as well, but it would be nice to see this > change get into the mainline source, so I don't have to keep fixing it for > my application. > > Thanks for any replies. Extra thanks for the useful ones! If you get the latest ppp from -current or from http://www.FreeBSD.org/~brian this will work. Ppp sets CLOCAL, then polls the tty line. This is kinda done for hysterical reasons, but I was never keen to change it because of my plans for multilink ppp. However, having said that, my ideas are now moving towards a multi-process model - one per physical line. This means that leaving CLOCAL off and waiting for a HUP would be the decent thing to do :-) I'll get to do some on this soon ! > -- > Frank Mayhar frank@exit.com -- Brian , , Don't _EVER_ lose your sense of humour....