svn commit: r295862 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sun Feb 21 16:48:39 UTC 2016


Author: jilles
Date: Sun Feb 21 16:48:37 2016
New Revision: 295862
URL: https://svnweb.freebsd.org/changeset/base/295862

Log:
  sh: Remove unnecessary flushouts while reading script.
  
  Output is flushed when a builtin is done or immediately after writing it
  (error messages, set -v output, prompts).

Modified:
  head/bin/sh/input.c

Modified: head/bin/sh/input.c
==============================================================================
--- head/bin/sh/input.c	Sun Feb 21 16:45:22 2016	(r295861)
+++ head/bin/sh/input.c	Sun Feb 21 16:48:37 2016	(r295862)
@@ -212,8 +212,6 @@ preadbuffer(void)
 	}
 	if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
 		return PEOF;
-	flushout(&output);
-	flushout(&errout);
 
 again:
 	if (parselleft <= 0) {


More information about the svn-src-head mailing list