Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 1996 17:01:29 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        davidn@sdev.usn.blaze.net.au, freebsd-hackers@freebsd.org
Subject:   Re: Logging ttys off
Message-ID:  <199612020601.RAA13338@godzilla.zeta.org.au>

index | next in thread | raw e-mail

>  - even if the serial port can be opened, setting the input/
>    output speeds to B0 does not reliably kill the line
>    (is this an error? should it?). It seems to work on
>    serial lines without clocal set, but not otherwise - I
>    would have expected a hangup on the port regardless (seems
>    to work reliably in other UNIXes I've worked with in the
>    past).

POSIX says that setting the speed to B0 causes the modem control
lines to be no longer asserted.  "Normally, this will disconnect
the line".  However, if CLOCAL is set, then "a connection does
not depend on the state of the modem control lines".  Setting the
speed to B0 has no effect on the connect in this abnornal case.

FreeBSD lets you prevent CLOCAL from being set.  If this is acceptable,
then you don't have to worry about hangups being ignored.

Bruce


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612020601.RAA13338>