Merge branch 'jk/pipe-command-nonblock' into maint
commitaa31cb89743a9ba4efd43f5160bfea0a4cbe5858
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2022 19:21:08 +0000 (13 12:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2022 19:21:08 +0000 (13 12:21 -0700)
tree0c70668c1d69a88696f9e40c5bc4d90617170286
parent72869e750bf62fa313e7854d18e48c083f4720cc
parent716c1f649e372a0784b9826cd3839e7b373e2ea9
Merge branch 'jk/pipe-command-nonblock' into maint

Fix deadlocks between main Git process and subprocess spawned via
the pipe_command() API, that can kill "git add -p" that was
reimplemented in C recently.

* jk/pipe-command-nonblock:
  pipe_command(): mark stdin descriptor as non-blocking
  pipe_command(): handle ENOSPC when writing to a pipe
  pipe_command(): avoid xwrite() for writing to pipe
  git-compat-util: make MAX_IO_SIZE define globally available
  nonblock: support Windows
  compat: add function to enable nonblocking pipes
git-compat-util.h