From owner-freebsd-current Wed Sep 10 19:38:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA17320 for current-outgoing; Wed, 10 Sep 1997 19:38:30 -0700 (PDT) Received: from usr05.primenet.com (tlambert@usr05.primenet.com [206.165.6.205]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA17312 for ; Wed, 10 Sep 1997 19:38:27 -0700 (PDT) Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id TAA23795; Wed, 10 Sep 1997 19:38:09 -0700 (MST) From: Terry Lambert Message-Id: <199709110238.TAA23795@usr05.primenet.com> Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ? To: nnd@itfs.nsk.su Date: Thu, 11 Sep 1997 02:38:09 +0000 (GMT) Cc: current@FreeBSD.ORG In-Reply-To: <5v64df$gsa@news.itfs.nsk.su> from "nnd@itfs.nsk.su" at Sep 10, 97 12:39:11 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > (from small script setted as as user's shell) > then it sets 'CLOCAL' flag for modem and > as a result 'ppp' process does'nt received 'SIGHUP' > on modem's carrier drop. > > What is the purpose of such ('CLOCAL') setting > in '-direct' mode ? Without correct use of the partial open hack, and a driver that supports it, without CLOCAL set, the lack of DCD prevents the process from communicating with the modem in order to configure it, since the open hangs until the DCD goes high. An alternative implementation would have a host open succeed with an O_NDELAY flag on the open, but not put the fd in async mode. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.