From 0102b1b02ea59cafbfa72fb16f4359387154094a Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 13 Nov 2007 17:02:09 +0100 Subject: [PATCH] Revert "Windows does not have the close-on-exec flag." This reverts commit e7a70c5ddfa0f925760c131c2c60c25b814df222. We now have a fcntl stub that makes the bracketed piece of code a no-op. --- sha1_file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index 0e527f7c6f..1df56aa417 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -653,7 +653,6 @@ static int open_packed_git_1(struct packed_git *p) } else if (p->pack_size != st.st_size) return error("packfile %s size changed", p->pack_name); -#ifndef __MINGW32__ /* We leave these file descriptors open with sliding mmap; * there is no point keeping them open across exec(), though. */ @@ -663,7 +662,6 @@ static int open_packed_git_1(struct packed_git *p) fd_flag |= FD_CLOEXEC; if (fcntl(p->pack_fd, F_SETFD, fd_flag) == -1) return error("cannot set FD_CLOEXEC"); -#endif /* Verify we recognize this pack file format. */ if (read_in_full(p->pack_fd, &hdr, sizeof(hdr)) != sizeof(hdr))