From owner-freebsd-hackers Sat Jun 1 17:01:24 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA11710 for hackers-outgoing; Sat, 1 Jun 1996 17:01:24 -0700 (PDT) Received: from lenzi ([200.247.7.213]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA11630 for ; Sat, 1 Jun 1996 17:00:40 -0700 (PDT) Received: (from lenzi@localhost) by lenzi (8.6.12/8.6.12) id UAA01541; Sat, 1 Jun 1996 20:17:46 -0300 Date: Sat, 1 Jun 1996 20:17:46 -0300 (EST) From: "Lenzi, Sergio" X-Sender: lenzi@lenzi To: Marc van Kempen cc: hackers@freebsd.org Subject: Re: Problems with serial port In-Reply-To: <199605310633.IAA01146@nietzsche.bowtie.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 31 May 1996, Marc van Kempen wrote: > > Hi, > > I'm having a problem with sendfax (from mgetty 0.99) hanging in a > ttywait (used ps auxl). This seems to happen to me after the machine > has been up for a longer period (19 days in this case, it also > happened a while back. The machine had been up for a similar period). > > I don't seem to able to get out of it, short of rebooting. This is > on a -stable kernel from a while back, rest is 2.1. > > Is there any other solution to remove the proces and free the > serial port, other than rebooting and is this perhaps a hardware > problem? (Whenever I reboot, the problem is immediately gone.) > > Regards, > Marc. The problem seems to happen when the fax disconnects and the modem sends erratic data to the port, causing it to hang. (i have experienced this whith modems in a kermit program). Solution: use the comcontrol command and the drainwait options. ex: comcontrol /dev/cuaa1 drainwait 20 In my system the port returns to normal state in 20 seconds. Hope this will help.>