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: Pat Thoyts <patthoyts@users.sourceforge.net>
  • Loading branch information
j6t authored and patthoyts committed Feb 4, 2011
1 parent b7f6799 commit 844cb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-command.c
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 844cb22

Please sign in to comment.