Date: Sun, 2 Jul 1995 01:09:37 +1000 From: Bruce Evans <bde@zeta.org.au> To: hackers@freebsd.org, kwong@fathergoose.net6c.io.org Subject: Re: sio driver problem Message-ID: <199507011509.BAA13954@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>1)
>I am not sure if someone is already discover this, found a bug in the
>serial card driver. in the sioopen function ( line 802 of sio.c ) a line
> if (!com->active_out) {
>it should be
> if (com->active_out) {
if (!com->active_out) {
is correct. The test succeeds if the callout port is not open (and the
tty is open), i.e., when the callin port is open.
>2)
>this is about the callin and callout problem: a getty is running on
>ttyd1. a call is make to a ppp provider then do a pppd /dev/cuaa1 57600
>but the pppd complained:
>pppd[187]:ioctl(TIOCSCTTY) operation not permitted
>again this only happen when getty is running on same port. otherwise
>It works fine.
Apparently the getty has opened ttyd1 and made it a controlling
terminal. This is supposed to stop the open of cuaa1 from succeeding,
but if you invert the test in (1) then the open works and something
breaks a little later.
ttyd1 should only be used for incoming calls.
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507011509.BAA13954>
