Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_win32_init.c @ 9039:8880fe0b193c
Win32: reworked ngx_win32_rename_file() to check errors.
Previously, ngx_win32_rename_file() retried on all errors returned by
MoveFile() to a temporary name. It only make sense, however, to retry
when the destination file already exists, similarly to the condition
when ngx_win32_rename_file() is called. Retrying on other errors is
meaningless and might result in an infinite loop.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Feb 2023 20:49:50 +0300 |
parents | d1079d6b2f19 |
children |
comparison
equal
deleted
inserted
replaced
9038:7d60e4584d9e | 9039:8880fe0b193c |
---|