From owner-freebsd-bugs Tue Nov 11 23:10:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA21479 for bugs-outgoing; Tue, 11 Nov 1997 23:10:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA21455; Tue, 11 Nov 1997 23:10:02 -0800 (PST) (envelope-from gnats) Date: Tue, 11 Nov 1997 23:10:02 -0800 (PST) Message-Id: <199711120710.XAA21455@hub.freebsd.org> To: freebsd-bugs Cc: From: Sean Eric Fagan Subject: Re: bin/4998 Reply-To: Sean Eric Fagan Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/4998; it has been noted by GNATS. From: Sean Eric Fagan To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: Subject: Re: bin/4998 Date: Tue, 11 Nov 1997 22:51:14 -0800 (PST) Another bit of fact: the following change to more causes it to stop core dumping. This should *not* be the "solution" -- there is something wrong in the kernel, I think, that is causing TCSADRAIN to not work for this case. Unfortunately, I can't reproduce it in any way that would let me run it under gdb -- "cat foo | ./more" doesn't do it, even though that does set up a pipe. Index: screen.c =================================================================== RCS file: /usr/cvs/src/usr.bin/more/screen.c,v retrieving revision 1.5 diff -u -r1.5 screen.c --- screen.c 1995/08/05 21:25:28 1.5 +++ screen.c 1997/11/12 06:49:10 @@ -191,7 +191,7 @@ #if TERMIO (void)ioctl(2, TCSETAW, &s); #else - tcsetattr(2, TCSADRAIN, &s); + tcsetattr(2, TCSANOW, &s); #endif #else struct sgttyb s;