diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2010-06-07 12:08:44 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-07 12:08:44 +0000 |
| commit | 9d4085af44e8eb9c18dbaa017b6deb2bb11644a2 (patch) | |
| tree | 58e5c57912ce874cd1e43e7ca25e6fa96d8a6999 /src/os/unix/ngx_files.h | |
| parent | 400683ac9102ee18564bb6eff0037e710fb48d9f (diff) | |
| download | nginx-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/unix/ngx_files.h')
| -rw-r--r-- | src/os/unix/ngx_files.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index c9144f31b..361c1bbd3 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -64,6 +64,7 @@ typedef struct { #define NGX_FILE_OPEN 0 #define NGX_FILE_TRUNCATE O_CREAT|O_TRUNC #define NGX_FILE_APPEND O_WRONLY|O_APPEND +#define NGX_FILE_NONBLOCK O_NONBLOCK #define NGX_FILE_DEFAULT_ACCESS 0644 #define NGX_FILE_OWNER_ACCESS 0600 |
