From bfc8b78f5736eafe48432bb0d2f819b6a968b17a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 21 Apr 2010 15:59:36 +0000 Subject: use non-blocking open() not to hang on FIFO files, etc. --- src/os/unix/ngx_files.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/os/unix/ngx_files.h') diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index ccaf44a93..f41eba581 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 -- cgit v1.2.3