Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 2016 16:48:37 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295862 - head/bin/sh
Message-ID:  <201602211648.u1LGmbFJ003672@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



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