aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_files.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2023-02-23 20:49:50 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2023-02-23 20:49:50 +0300
commit94d8cea620e0abc67f4d0fe9aaf6170f39529c8c (patch)
tree730ef1923d84ad8f7e4d73e8b69551b84bcc4873 /src/os/win32/ngx_files.h
parentf8075f1ef5106c9f0d894f83cfa81dbb9f5ce2da (diff)
downloadnginx-94d8cea620e0abc67f4d0fe9aaf6170f39529c8c.tar.gz
nginx-94d8cea620e0abc67f4d0fe9aaf6170f39529c8c.zip
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.
Diffstat (limited to 'src/os/win32/ngx_files.h')
0 files changed, 0 insertions, 0 deletions