[comp.sys.sgi] stdout buffering trouble

mccalpin@MASIG1.OCEAN.FSU.EDU ("John D. McCalpin") (12/08/88)

I could not ever completely isolate the problem with buffering of
stdout in gnu emacs, but I have found a workaround.  
In file sysdep.c, routine reset_sys_modes(), the following statements
appear
	reset_terminal_modes();
	fflush(stdout);
      /* followed by some ioctl-looking stuff */
I simply put a
	sleep(2);
after the fflush(stdout), and now no characters are lost.

----------------------------------------------------------------
John D. McCalpin
Mesoscale Air-Sea Interaction Group &
	Department of Oceanography &
		Supercomputer Computations Research Institute
The Florida State University

mccalpin@masig1.ocean.fsu.edu	(requires nameserver to access)
mccalpin@nu.cs.fsu.edu		(in DOD host tables)
mccalpin@fsu			(BITNET or MFENET)
SCRI::MCCALPIN			(SPAN)
----------------------------------------------------------------