Re: [PATCH v6 13/13] read-cache: make sure file handles are not inherited by child processes
Show 8 quoted lines
>
> diff --git a/sha1_file.c b/sha1_file.c
> index d5e1121..759991e 100644
> --- a/sha1_file.c
> +++ b/sha1_file.c
> @@ -1485,7 +1485,7 @@ int check_sha1_signature(const unsigned char *sha1, void *map,
>
> int git_open_noatime(const char *name)
Hm, should the function then be renamed into
git_open_noatime_cloexec()
Show 9 quoted lines
> {
> - static int sha1_file_open_flag = O_NOATIME;
> + static int sha1_file_open_flag = O_NOATIME | O_CLOEXEC;
>
> for (;;) {
> int fd;
>
>
>