Date: Wed, 2 Dec 1998 15:27:24 +1300 (NZDT) From: Jonathan Chen <jonc@pinnacle.co.nz> To: Todd R Butler <todd@traksys.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ttywri state Message-ID: <Pine.SCO.3.96.981202150833.14979A-100000@kiwi.pinnacle.co.nz> In-Reply-To: <36649805.C795715B@traksys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 1 Dec 1998, Todd R Butler wrote:
> Confused:
>
> I have recently ported a custom SCO application (Compiled on SCO) to
> FreeBSD.
> So far, during testing all looks good except when I run the
> application on a
> terminal (ttyd0) it locks the terminal. Running TOP at the console
> reveals that
There's a bug with the SCO emulation software, in that if it attempts
to change the terminal settings (eg: to raw mode for example), it will
screw up the baud rate; check it out with stty -a < /dev/ttyd0.
I've submitted patches for /usr/src/sys/i386/ibcs2/ibcs2_ioctl.c -
I've included it here as well. Check out the GNATS bug database
for `i386/8414' for more details - it's been on the wait queue for
ages.
Cheers.
--
Jonathan Chen
--------------------------------------------------------------------
Contrary to popular belief,
penguins are not the salvation of modern technology.
Neither do they throw parties for the urban proletariat.
--
*** ibcs2_ioctl.c.org Wed Dec 2 15:21:55 1998
--- ibcs2_ioctl.c Wed Dec 2 15:22:46 1998
***************
*** 188,193 ****
--- 188,194 ----
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;
***************
*** 199,206 ****
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;
--- 200,205 ----
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SCO.3.96.981202150833.14979A-100000>
