[PATCH v1 0/2] Use CLOEXEC to avoid fd leaks
- From
larsxschneider@gmail.com <larsxschneider@gmail.com>
- Date
- Sep 5, 2016, 21:11 UTC
- Message-ID
- <20160905211111.72956-1-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>
Use the CLOEXEC flag similar to 05d1ed61 to fix leaked file descriptors.
Patch 1/2 was contemplated by Junio here: http://public-inbox.org/git/xmqq37lnbbpk.fsf@gitster.mtv.corp.google.com/
I followed Torsten's advice and renamed `git_open_noatime` to `git_open_noatime_cloexec`: http://public-inbox.org/git/20160830145429.GA11221@tb-raspi/
Patch 2/2 was part of my "Git filter protocol" series: http://public-inbox.org/git/20160825110752.31581-14-larsxschneider@gmail.com/ (I kept the patch as-is but changed the commit messages slightly)
Thanks, Lars
Lars Schneider (2):
sha1_file: open window into packfiles with CLOEXEC
read-cache: make sure file handles are not inherited by child
processesbuiltin/pack-objects.c | 2 +- cache.h | 2 +- pack-bitmap.c | 2 +- read-cache.c | 2 +- sha1_file.c | 14 +++++++------- 5 files changed, 11 insertions(+), 11 deletions(-)
-- 2.10.0