[PATCHv3 03/11] run-command: omit setting file descriptors to non blocking in Windows
- From
Stefan Beller <sbeller@google.com>
- Date
- Nov 4, 2015, 00:37 UTC
- Message-ID
- <1446597434-1740-4-git-send-email-sbeller@google.com>
- In-Reply-To
- <1446597434-1740-1-git-send-email-sbeller@google.com>
In Windows there is no fcntl apparently and as it only affects output slightly we can just run with degraded output in Windows.
Signed-off-by: Stefan Beller <sbeller@google.com> --- run-command.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/run-command.c b/run-command.c index 3ae563f..8db7df8 100644 --- a/run-command.c +++ b/run-command.c @@ -1012,6 +1012,7 @@ static void pp_cleanup(struct parallel_processes *pp) static void set_nonblocking(int fd) { +#ifndef GIT_WINDOWS_NATIVE static int reported_degrade = 0; int flags = fcntl(fd, F_GETFL); if (flags < 0) { @@ -1027,6 +1028,7 @@ static void set_nonblocking(int fd) reported_degrade = 1; } } +#endif } /* returns
-- 2.6.1.247.ge8f2a41.dirty