Files
git/builtin
Jeff King 6cdad1f133 receive-pack: fix deadlock when we cannot create tmpdir
The err_fd descriptor passed to the unpack() function is
intended to be handed off to the child index-pack, and our
async muxer will read until it gets EOF. However, if we
encounter an error before handing off the descriptor, we
must manually close(err_fd). Otherwise we will be waiting
for our muxer to finish, while the muxer is waiting for EOF
on err_fd.

We fixed an identical deadlock already in 49ecfa13f
(receive-pack: close sideband fd on early pack errors,
2013-04-19). But since then, the function grew a new
early-return in 722ff7f87 (receive-pack: quarantine objects
until pre-receive accepts, 2016-10-03), when we fail to
create a temporary directory. This return needs the same
treatment.

Reported-by: Horst Schirmeier <horst@schirmeier.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-03-07 14:51:03 -08:00
..
2016-09-19 13:47:19 -07:00
2016-11-22 13:55:20 -08:00
2016-10-10 14:03:51 -07:00
2016-09-22 13:42:18 -07:00
2016-02-26 13:37:16 -08:00
2016-09-29 15:42:18 -07:00
2016-09-21 15:15:24 -07:00
2016-09-29 15:42:18 -07:00
2016-10-10 14:03:50 -07:00
2016-10-27 14:58:48 -07:00
2016-09-29 20:40:23 -07:00
2016-09-26 16:09:17 -07:00
2016-11-22 13:13:16 -08:00
2016-10-26 13:30:51 -07:00
2016-09-29 15:42:18 -07:00
2016-10-03 13:30:33 -07:00
2016-09-29 15:42:18 -07:00
2016-07-14 15:50:41 -07:00
2016-09-29 15:42:18 -07:00
2016-07-13 11:24:10 -07:00
2015-10-05 13:20:08 -07:00
2016-10-17 13:25:22 -07:00
2016-10-27 14:58:47 -07:00
2016-09-29 20:40:23 -07:00
2016-10-03 12:46:47 -07:00
2016-04-29 12:59:09 -07:00