Date: Thu, 11 Sep 1997 17:05:06 +1000
From: Bruce Evans <bde@zeta.org.au>
To: current@freebsd.org, nnd@itfs.nsk.su
Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ?
Message-ID: <199709110705.RAA30497@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> But then I must ask myself - if this are general >'stdin/stdout' files - what the hell does 'CLOCAL' means >for them ? CLOCAL is meaningless except for ttys. tcsetattr() returns ENOTTY for non-ttys. ppp ignores this error. Modem ioctls are meaningless for some types of ttys. E.g., ioctl(fd, TIOCMGET, &state) returns ENOTTY for ttyv0. ppp handles this a bit better. ppp on ttyv0 can't be expected to work for this and other reasons. In practice, `ppp -direct' on ttyv0 exits after a few seconds before tring any modem ioctls. It prints some gibberish and leaves the tty in a bad state. > Now I use a compromise - I've patched my 'ppp' and >after that it's behavior is more suitable for my purposes >(at least ppp process on my - server - side of a link >sees the CD drop and exits). ppp should notice the drop and do something appropriate. Perhaps you are using an old version of the cy driver which has broken carrier handling when CLOCAL is set. This is supposed to be fixed in -current, 2.2.0 and 2.1. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709110705.RAA30497>
