grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.22-9-gd078808


From: Paul Eggert
Subject: grep branch, master, updated. v2.22-9-gd078808
Date: Thu, 31 Dec 2015 07:37:42 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  d078808cdc868d534b5af1c19f3c10823884ca8d (commit)
      from  413fe0e603740b9cdeb49d61aa789f7254e13d18 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=d078808cdc868d534b5af1c19f3c10823884ca8d


commit d078808cdc868d534b5af1c19f3c10823884ca8d
Author: Paul Eggert <address@hidden>
Date:   Wed Dec 30 23:37:10 2015 -0800

    grep: report line-buffered write error right away
    
    * src/grep.c (prline): When line buffered, if there is a write
    error, report it immediately rather than waiting until the next
    line of output.

diff --git a/src/grep.c b/src/grep.c
index 06f315d..696f4ce 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1180,6 +1180,9 @@ prline (char *beg, char *lim, char sep)
   if (!only_matching && lim > beg)
     fwrite (beg, 1, lim - beg, stdout);
 
+  if (line_buffered)
+    fflush (stdout);
+
   if (ferror (stdout))
     {
       write_error_seen = true;
@@ -1187,9 +1190,6 @@ prline (char *beg, char *lim, char sep)
     }
 
   lastout = lim;
-
-  if (line_buffered)
-    fflush (stdout);
 }
 
 /* Print pending lines of trailing context prior to LIM. Trailing context ends

-----------------------------------------------------------------------

Summary of changes:
 src/grep.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]