Skip to content

Commit

Permalink
start_command: flush buffers in the WIN32 code path as well
Browse files Browse the repository at this point in the history
The POSIX code path did The Right Thing already, but we have to do the same
on Windows.

This bug caused failures in t5526-fetch-submodules, where the output of
'git fetch --recurse-submodules' was in the wrong order.

Debugged-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed Feb 7, 2011
1 parent 787d2a7 commit 13af8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ int start_command(struct child_process *cmd)
}

trace_argv_printf(cmd->argv, "trace: run_command:");
fflush(NULL);

#ifndef WIN32
{
int notify_pipe[2];
if (pipe(notify_pipe))
notify_pipe[0] = notify_pipe[1] = -1;

fflush(NULL);
cmd->pid = fork();
if (!cmd->pid) {
/*
Expand Down

0 comments on commit 13af8cb

Please sign in to comment.