From owner-freebsd-hackers Wed Dec 13 06:17:01 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA13591 for hackers-outgoing; Wed, 13 Dec 1995 06:17:01 -0800 (PST) Received: from rd.zgik.zaporizhzhe.ua (rd.zgik.zaporizhzhe.ua [193.124.62.69]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA13483 for ; Wed, 13 Dec 1995 06:16:35 -0800 (PST) Received: by rd.zgik.zaporizhzhe.ua id AA02392 (5.65c8/IDA-1.4.4 for hackers@freebsd.org); Wed, 13 Dec 1995 16:13:43 +0200 From: Eugene Polovnikov Message-Id: <199512131413.AA02392@rd.zgik.zaporizhzhe.ua> Subject: Re: bug or feature in kern/tty.c To: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Date: Wed, 13 Dec 1995 16:13:40 +0200 (UKR) Cc: eugen@rd.zgik.zaporizhzhe.ua, hackers@freebsd.org, yura@rd.zgik.zaporizhzhe.ua In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Dec 13, 95 04:14:38 pm X-Mailer: ELM [version 2.4 PL0] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk > > 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? Why i can not output to line after reestablish connection ? > > >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. Im my case redial cmd no usable: slattach work with LL dumb short range modem, with full modem control but whithout commands.