X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=run-command.c;h=f91e446c86be8e27f98554567143d7ce6f934bd1;hb=c597ba801048be45d168b1f6335e91bab165448f;hp=2a1041ef6599c84fff6a8d9faf5dea23a2af3ab0;hpb=039e84e30d38f51d68ab465bfae32ba8058b51a0;p=thirdparty%2Fgit.git diff --git a/run-command.c b/run-command.c index 2a1041ef65..f91e446c86 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) { /*