diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2016-10-24 20:02:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-25 11:09:54 -0700 |
commit | cd66ada06588f797a424dd1f6da1c6bb51de1660 (patch) | |
tree | 0dc5420dbe93ec54c0982f320b899c516a7c967c /read-cache.c | |
parent | a5436b57941d99302a4cf68373da6288c11f0340 (diff) | |
download | git-cd66ada06588f797a424dd1f6da1c6bb51de1660.tar.gz |
sha1_file: open window into packfiles with O_CLOEXEC
All processes that the Git main process spawns inherit the open file
descriptors of the main process. These leaked file descriptors can
cause problems.
Use the O_CLOEXEC flag similar to 05d1ed61 to fix the leaked file
descriptors.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions