From owner-freebsd-questions Tue May 22 14:14:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 7244037B422; Tue, 22 May 2001 14:14:23 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.3/8.11.1) id f4MLE1Z90784; Wed, 23 May 2001 09:14:01 +1200 (NZST) (envelope-from jonc) Date: Wed, 23 May 2001 09:14:00 +1200 From: Jonathan Chen To: David Banning Cc: Ted Mittelstaedt , questions@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: digiboard serial port behaviour problem Message-ID: <20010523091400.A89111@itouchnz.itouch> References: <20010522021147.A4215@yahoo.com> <003e01c0e28c$a1e349a0$1401a8c0@tedm.placo.com> <20010522161115.A6917@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010522161115.A6917@yahoo.com>; from sky_tracker@yahoo.com on Tue, May 22, 2001 at 04:11:15PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 22, 2001 at 04:11:15PM +0000, David Banning wrote: > > But, this database program hangs when it comes time > > for the opening screen. > > Yes. > > > > > My guess is that the database program is doing something during > > the opening screen that has nothing whatsoever to do with the > > terminal session, but is making the process crash. Since this > > is an SCO program that is most likely a function call into the > > SCO libraries, and thence to the ibcs2 emulator. > > If that is the case, wouldn't the program also crash on the console? > It runs fine on the system console. It also runs fine over a network > connection running on a X-Win32 xterm session. There's a problem with the ibcs2 emulator when dealing with serial terminals. http://www.freebsd.org/cgi/query-pr.cgi?pr=8414 I'd posted a patch a *VERY* long time ago, but it hasn't been integrated into the system. Attached should be an updated patch for the 4.X-STABLE. Try rebuilding the ibcs2.ko module with the patch, it should fix your problem. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- The Internet: an empirical test of the idea that a million monkeys banging on a million keyboards can produce Shakespeare --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch --- ibcs2_ioctl.c.old Wed May 23 09:02:52 2001 +++ ibcs2_ioctl.c Wed May 23 09:04:19 2001 @@ -166,6 +166,7 @@ if (l & IBCS2_HUPCL) r |= HUPCL; if (l & IBCS2_CLOCAL) r |= CLOCAL; bt->c_cflag = r; + bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f]; l = st->c_lflag; r = 0; if (l & IBCS2_ISIG) r |= ISIG; @@ -177,8 +178,6 @@ if (l & IBCS2_NOFLSH) r |= NOFLSH; if (l & IBCS2_TOSTOP) r |= TOSTOP; bt->c_lflag = r; - - bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f]; bt->c_cc[VINTR] = st->c_cc[IBCS2_VINTR] ? st->c_cc[IBCS2_VINTR] : _POSIX_VDISABLE; --zhXaljGHf11kAtnf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message