Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 1995 16:14:38 +0300 (MSK)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su>
To:        Eugene Polovnikov <eugen@rd.zgik.zaporizhzhe.ua>, hackers@freebsd.org
Cc:        Yury Pshenychny <yura@rd.zgik.zaporizhzhe.ua>
Subject:   Re: bug or feature in kern/tty.c
Message-ID:  <Xb-6jpmGW2@ache.dialup.ru>
In-Reply-To: <199512131039.AA01605@rd.zgik.zaporizhzhe.ua>; from Eugene Polovnikov at Wed, 13 Dec 1995 12:39:37 %2B0200 (UKR)
References:  <199512131039.AA01605@rd.zgik.zaporizhzhe.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199512131039.AA01605@rd.zgik.zaporizhzhe.ua> Eugene
    Polovnikov writes:

>I found strange thing in 2.1.0-RELEASE (and -current) in kern/tty.c.
>When carrier was lossed then ttymodem() set TS_ZOMBIE and clear
>TS_CONNECTED in tp->t_state. But TS_ZOMBIE is cleared only in ttioctl()
>TIOCSETA* when line is setted to ignore modem status and when line is closed.
>As result in ttymodem() after lossing carrier TS_CONNECTED  is not setting
>whithout reopening line or changing c_cflag to CLOCAL, and if this line
>used for SLIP connection as result we have 'No route to host' error
>when trying output to this line after modem reconnected.

It is right per POSIX.
Why you need to output anything to closed line?

>Or is this bug in slattach ? slattach never set CLOCAL when it's working
>with modem control and without redial cmd.

I am not shure, what result you expect...
If you need to reestablish connection, use redial cmd.

-- 
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
http://dt.demos.su/~ache : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849



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