Date: Thu, 11 Sep 1997 02:38:09 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: nnd@itfs.nsk.su Cc: current@FreeBSD.ORG Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ? Message-ID: <199709110238.TAA23795@usr05.primenet.com> In-Reply-To: <5v64df$gsa@news.itfs.nsk.su> from "nnd@itfs.nsk.su" at Sep 10, 97 12:39:11 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> (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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709110238.TAA23795>