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

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

 



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 <frank@xxxxxxxxxxxxxx>
www: http://www.djpig.de/
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux