diff src/os/unix/ngx_posix_init.c @ 3786:8a8eb335313d

Linux accept4() support
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Nov 2010 10:15:04 +0000
parents 8b852e4e2643
children d620f497c50f
line wrap: on
line diff
--- a/src/os/unix/ngx_posix_init.c
+++ b/src/os/unix/ngx_posix_init.c
@@ -60,7 +60,7 @@ ngx_os_init(ngx_log_t *log)
 
     ngx_max_sockets = (ngx_int_t) rlmt.rlim_cur;
 
-#if (NGX_HAVE_INHERITED_NONBLOCK)
+#if (NGX_HAVE_INHERITED_NONBLOCK || NGX_HAVE_ACCEPT4)
     ngx_inherited_nonblocking = 1;
 #else
     ngx_inherited_nonblocking = 0;