From owner-freebsd-questions Thu Feb 23 09:17:32 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id JAA07228 for questions-outgoing; Thu, 23 Feb 1995 09:17:32 -0800 Received: from Root.COM (implode.Root.COM [198.145.90.1]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id JAA07222 for ; Thu, 23 Feb 1995 09:17:28 -0800 Received: from corbin.Root.COM (corbin.Root.COM [198.145.90.18]) by Root.COM (8.6.8/8.6.5) with ESMTP id JAA12682; Thu, 23 Feb 1995 09:16:51 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.9/8.6.5) with SMTP id JAA21509; Thu, 23 Feb 1995 09:16:50 -0800 Message-Id: <199502231716.JAA21509@corbin.Root.COM> X-Authentication-Warning: corbin.Root.COM: Host localhost didn't use HELO protocol 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) In-reply-to: Your message of "Thu, 23 Feb 95 12:08:03 EST." <9502231708.AA18148@cottonwood.sybgate.sybase.com> From: David Greenman Reply-To: davidg@Root.COM Date: Thu, 23 Feb 1995 09:16:48 -0800 Sender: questions-owner@FreeBSD.org Precedence: bulk >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);