X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.c;h=f91e446c86be8e27f98554567143d7ce6f934bd1;hb=a66f9b2afde8ae0d6bd8991e6a8f848904c8bdde;hp=2a1041ef6599c84fff6a8d9faf5dea23a2af3ab0;hpb=fcd91f8de20bf7969599a7a60cba73117d99f2d1;p=git.git diff --git a/run-command.c b/run-command.c index 2a1041ef6..f91e446c8 100644 --- a/run-command.c +++ b/run-command.c @@ -194,6 +194,7 @@ fail_pipe: } trace_argv_printf(cmd->argv, "trace: run_command:"); + fflush(NULL); #ifndef WIN32 { @@ -201,7 +202,6 @@ fail_pipe: if (pipe(notify_pipe)) notify_pipe[0] = notify_pipe[1] = -1; - fflush(NULL); cmd->pid = fork(); if (!cmd->pid) { /*