Thread (17 messages) flat view 17 messages, 5 authors, 2016-06-15

Re: [PATCH] Don't fflush(stdout) when it's not helpful

From: Frank Lichtenheld <hidden>
Date: 2016-06-15 22:43:18

Possibly related (same subject, not in this thread)

On Thu, Jun 28, 2007 at 07:53:19PM -0400, Theodore Tso wrote:
Good point.  Here's a revised patch where GIT_FLUSH=0 and GIT_FLASH=1
trumps any hueristics.
[...]
+			else if (getenv("GIT_NEVER_FLUSH_STDOUT") ||
+				 ((fstat(fileno(stdout), &st) == 0) &&
+				  S_ISREG(st.st_mode)))
+				stdout_is_file = 1;
+			else
+				stdout_is_file = 0;
+		}
Any particular reason why you still check for GIT_NEVER_FLUSH_STDOUT in
addition to GIT_FLUSH?

Gruesse,
-- 
Frank Lichtenheld [off-list ref]
www: http://www.djpig.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help