]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/pipe-command-nonblock' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2022 19:21:08 +0000 (12:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2022 19:21:08 +0000 (12:21 -0700)
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

1  2 
git-compat-util.h

Simple merge