linebuffering & input
    Chris Torek 
    chris at mimsy.UUCP
       
    Fri Sep 30 02:13:34 AEST 1988
    
    
  
In article <486 at quintus.UUCP> ok at quintus (Richard A. O'Keefe) writes:
>This problem exists in SunOS 3.2 and DYNIX "V3.0.12 NFS", so I suspect
>that it is a 4.2BSD problem.
It is; it persists in 4.3BSD and 4.3BSD-tahoe; and there is no really
easy fix.  You can add your own flush for all line buffered streams:
	static
	flushifl(f)
		FILE *f;
	{
		if (f->_flag & _IOLBF)
			(void) fflush(f);
	}
	flushlb()
	{
		_fwalk(flushifl);
	}
_fwalk is undocumented, so this should be used only `#if needed' as
a workaround.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris
    
    
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list