Date: Thu, 23 Feb 1995 09:16:48 -0800 From: David Greenman <davidg@Root.COM> To: jeffa@sybase.com (Jeff Anuszczyk) Cc: freebsd-questions@FreeBSD.org Subject: Re: Help with 1.1.5.1 and SLIP (problem with handling hangups) Message-ID: <199502231716.JAA21509@corbin.Root.COM> In-Reply-To: Your message of "Thu, 23 Feb 95 12:08:03 EST." <9502231708.AA18148@cottonwood.sybgate.sybase.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>it properly reports a HUP to the slattach process. This causes us to
>reissue the chat script. Almost immediately the chat script gets an
>error saying it is unable to write to the port. This causes a new HUP to
>be seen by the slattach process... which launches a new chat script... etc.
>
> Well... this is a major league bummer since I need the slattach to
>be able to automatically redial if it looses the connection. Kind of
>defeats a perm. connection if it's only as permanent as the initial
>dialup. Uhg.
>
> Does anyone know of a way around this problem? Any patches to sio.c
>or slattach that would make it handle this better?
Use the attached patch.
-DG
Index: tty.c
===================================================================
RCS file: /home/cvs/386BSD/src/sys/kern/tty.c,v
retrieving revision 1.32
diff -c -r1.32 tty.c
*** 1.32 1994/05/30 21:53:17
--- tty.c 1994/10/06 22:53:33
***************
*** 559,564 ****
--- 559,565 ----
return (error);
}
if (t->c_cflag & CLOCAL && !(tp->t_cflag & CLOCAL)) {
+ tp->t_state &= ~TS_ZOMBIE;
wakeup(TSA_CARR_ON(tp));
ttwakeup(tp);
ttwwakeup(tp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502231716.JAA21509>
