Add output flushing before fork()
authorAnders Melchiorsen <mail@cup.kalibalik.dk>
Mon, 4 Aug 2008 10:18:40 +0000 (12:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Aug 2008 04:46:42 +0000 (21:46 -0700)
commit7d0b18a4da1be9e738293cc13812757ca47ed109
tree7dd79690ee16d7af1ccf8a9519c59132599bc35a
parent611921654ffb854338ab758009a93c70054fab7f
Add output flushing before fork()

This adds fflush(NULL) before fork() in start_command(), to keep
the generic interface safe.

A remaining use of fork() with no flushing is in a comment in
show_tree(). Rewrite that comment to use start_command().

Signed-off-by: Anders Melchiorsen <mail@cup.kalibalik.dk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-ls-tree.c
run-command.c