| commit | bfc8b78f5736eafe48432bb0d2f819b6a968b17a | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Wed Apr 21 15:59:36 2010 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Wed Apr 21 15:59:36 2010 +0000 |
| tree | 03b939c788c73fc9847a2c95547f408bcbb0d9de | |
| parent | 9c1a43e050c4824304e84c1e9ec47f54ac1ac8b6 [diff] [blame] |
use non-blocking open() not to hang on FIFO files, etc.
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index ccaf44a..f41eba5 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h
@@ -64,6 +64,7 @@ #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