]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
upload-pack: make check_non_tip() clean things up on error
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 12 Jun 2016 10:53:51 +0000 (17:53 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jun 2016 21:38:16 +0000 (14:38 -0700)
commit7fcbd37f9c1b7413b408d0223344d070613777ac
treea5e6eb9453478b6ad8273d2a06afe08c1e4c682d
parent6e414e30fd12460d7a7ba3ce67d20aa82a41a737
upload-pack: make check_non_tip() clean things up on error

On error check_non_tip() will die and not closing file descriptors is no
big deal. The next patch will split the majority of this function out
for reuse in other cases, where die() may not be the only outcome. Same
story for popping SIGPIPE out of the signal chain. So let's make sure we
clean things up properly first.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c