From owner-freebsd-questions Sun Jul 7 09:27:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA15176 for questions-outgoing; Sun, 7 Jul 1996 09:27:02 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA15170 for ; Sun, 7 Jul 1996 09:26:59 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0ucwfg-000QekC; Sun, 7 Jul 96 18:26 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id SAA16843; Sun, 7 Jul 1996 18:22:10 +0200 Message-Id: <199607071622.SAA16843@allegro.lemis.de> Subject: Re: FreeBSD 2.1 Help To: tcg@ime.net Date: Sun, 7 Jul 1996 18:22:10 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: <31DFE323.5F9@ime.net> from "Gary Chrysler" at Jul 7, 96 12:17:39 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Gary Chrysler writes: > > (lots of good stuff omitted) > > Yea, I agree, Try several different tests.. :) > Can't hurt. > > 99.999% of my experiance is Dos based. So I have no idea what > -clocal does. You can bet I'm looking though.. :) Sorry, I keep forgetting that I should explain these things. To quote the termios(4) man page, If CLOCAL is set, a connection does not depend on the state of the modem status lines. If CLOCAL is clear, the modem status lines are monitored. Under normal circumstances, a call to the open() function waits for the modem connection to complete. However, if the O_NONBLOCK flag is set or if CLOCAL has been set, the open() function returns immediately without waiting for the connection. In stty, on is shown as clocal, and off is shown as -clocal. The modem control line to which it refers is DCD (Data Carrier Detect), which only comes on when you have established a connection. In the olden days, before modems had autodial capability, this was appropriate, but now it's a pain. Greg