From owner-cvs-usrsbin Tue Sep 23 15:30:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA09414 for cvs-usrsbin-outgoing; Tue, 23 Sep 1997 15:30:16 -0700 (PDT) Received: from lsd.relcom.eu.net (ache@lsd.relcom.eu.net [193.124.23.23]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA09327; Tue, 23 Sep 1997 15:29:16 -0700 (PDT) Received: (from ache@localhost) by lsd.relcom.eu.net (8.8.7/8.8.7) id CAA07140; Wed, 24 Sep 1997 02:29:12 +0400 (MSD) Date: Wed, 24 Sep 1997 02:29:11 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= X-Sender: ache@lsd.relcom.eu.net To: Brian Somers cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp modem.c In-Reply-To: <199709232209.PAA03564@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 23 Sep 1997, Brian Somers wrote: > brian 1997/09/23 15:09:46 PDT > > Modified files: (Branch: RELENG_2_2) > usr.sbin/ppp modem.c > Log: > MFC: Don't use uu_lock in -direct mode. It conflicts w/ > hylafax & the like. Early or later you'll return to model I describe: treat -direct as stdin/stdout only without any additional assumptions :-) It seems that hylafax lock modem before open (like any soft who open modem). Moreover some soft can use its own tty modes for opened modem which ppp may spam by CLOCAL set. Imagine f.e. that some upper level soft open device as controlling terminal (assuming he got HUP or -1 from it on carrier drop) then pass descriptor to ppp stdin. ppp spams tty modes by its own CLOCAL, causing upper level soft never got HUP. I think ppp must not touch tty flags of passed descriptor as possible. F.e. setting RAW mode is acceptable thing, but setting/removing HUP handling is not acceptable. Then use both HUP catch function and TIOCM_CD to handle carrier with fallback to carrier_always_ON if TIOCM_CD returns -1. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/