diff options
| author | Ted Nyman <tnyman@openai.com> | 2026-07-26 17:28:42 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-27 12:57:20 -0700 |
| commit | e92a518a741ead85634c43f871e7e095bcf66f1f (patch) | |
| tree | 382b9974720f959998ad760b8e04e07b46494d77 /gitweb/gitweb.css | |
| parent | 5e855d9b426dd01552ecbfb47062b90fe53b3df5 (diff) | |
http: permit unlinking partial packs on Windows
On Windows, an open file must permit FILE_SHARE_DELETE before another
process can unlink it. MinGW's non-append O_RDWR open enables that
sharing mode only for an existing file; adding O_CREAT falls back to
_wopen(), which cannot set it.
First try opening the partial pack without O_CREAT. If it does not
exist, create it exclusively, close that descriptor, and retry through
the existing-file path. A racing creator retries after EEXIST.
This ensures that every retained descriptor permits another downloader
to unlink the staging path. Add an unlink-while-indexing test that does
not require FIFOs and can therefore run on MinGW.
Signed-off-by: Ted Nyman <tnyman@openai.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
0 files changed, 0 insertions, 0 deletions
