Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 1997 23:10:02 -0800 (PST)
From:      Sean Eric Fagan <sef@kithrup.com>
To:        freebsd-bugs
Subject:   Re: bin/4998
Message-ID:  <199711120710.XAA21455@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/4998; it has been noted by GNATS.

From: Sean Eric Fagan <sef@kithrup.com>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711120710.XAA21455>