summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32/ngx_files.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-07 12:08:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-07 12:08:44 +0000
commit9d4085af44e8eb9c18dbaa017b6deb2bb11644a2 (patch)
tree58e5c57912ce874cd1e43e7ca25e6fa96d8a6999 /src/os/win32/ngx_files.h
parent400683ac9102ee18564bb6eff0037e710fb48d9f (diff)
downloadnginx-9d4085af44e8eb9c18dbaa017b6deb2bb11644a2.tar.gz
nginx-9d4085af44e8eb9c18dbaa017b6deb2bb11644a2.tar.bz2
merge r3498, r3499:
opening files fixes: *) use non-blocking open() not to hang on FIFO files, etc. *) do not log misleading errno in "not a regular file" error
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r--src/os/win32/ngx_files.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h
index c11379f4f..7d01736c2 100644
--- a/src/os/win32/ngx_files.h
+++ b/src/os/win32/ngx_files.h
@@ -64,6 +64,7 @@ ngx_fd_t ngx_open_file(u_char *name, u_long mode, u_long create, u_long access);
#define NGX_FILE_WRONLY GENERIC_WRITE
#define NGX_FILE_RDWR GENERIC_READ|GENERIC_WRITE
#define NGX_FILE_APPEND FILE_APPEND_DATA|SYNCHRONIZE
+#define NGX_FILE_NONBLOCK 0
#define NGX_FILE_CREATE_OR_OPEN OPEN_ALWAYS
#define NGX_FILE_OPEN OPEN_EXISTING