diff src/os/unix/ngx_files.h @ 3497:ac281bc4c187

use non-blocking open() not to hang on FIFO files, etc.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Apr 2010 15:59:36 +0000
parents e19df6e65352
children 423ff11e3018
line wrap: on
line diff
--- 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