Re: [PATCH] Use line buffering for standard output
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 3, 2008, 21:38 UTC
- Message-ID
- <7vhca193th.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1217798768-18021-1-git-send-email-mail@cup.kalibalik.dk>
Anders Melchiorsen <mail@cup.kalibalik.dk> writes:
> Normally, stdout is fully buffered, unless it refers to a terminal > device. This gives problems when fork() is in play: the buffer is > cloned and output appears twice.
I thought we have been careful to flush() them before we fork but perhaps there are recent changes that were not careful. Wouldn't it be better to fix them first, independent of this change?