]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: isolate sigpipe in demuxer thread
authorJeff King <peff@peff.net>
Tue, 19 Apr 2016 22:50:29 +0000 (18:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Apr 2016 20:33:56 +0000 (13:33 -0700)
commitdf85757244c47394d42de2a45bd39522ee0c3b1d
tree86c3e1426d11590246a5d4932da19ff9bfd2703c
parent3e8b06d09c48a46ad7fee761a58040a7b006a642
fetch-pack: isolate sigpipe in demuxer thread

In commit 9ff18fa (fetch-pack: ignore SIGPIPE in sideband
demuxer, 2016-02-24), we started using sigchain_push() to
ignore SIGPIPE in the async demuxer thread. However, this is
rather clumsy, as it ignores SIGPIPE for the entire process,
including the main thread. At the time we didn't have any
per-thread signal support, but we now we do. Let's use it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c