diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-05-21 13:28:21 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-05-21 13:28:21 +0000 |
commit | fa73aac7747c9d0a8575eb2beffcdab50171e006 (patch) | |
tree | d1e354f2e321b8f1c4e5518984759bab1ae05ddd /src/os/unix/ngx_socket.c | |
parent | 1c13c662f0ae8066d1d4849b4158d7459a4c7822 (diff) | |
download | nginx-fa73aac7747c9d0a8575eb2beffcdab50171e006.tar.gz nginx-fa73aac7747c9d0a8575eb2beffcdab50171e006.zip |
nginx-0.0.1-2003-05-21-17:28:21 import
Diffstat (limited to 'src/os/unix/ngx_socket.c')
-rw-r--r-- | src/os/unix/ngx_socket.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/os/unix/ngx_socket.c b/src/os/unix/ngx_socket.c index d213fa86f..0746fa0ec 100644 --- a/src/os/unix/ngx_socket.c +++ b/src/os/unix/ngx_socket.c @@ -2,12 +2,15 @@ #include <ngx_socket.h> -/* ioctl(FIONBIO) set blocking mode with one syscall only while +/* + ioctl(FIONBIO) set blocking mode with one syscall only while fcntl(F_SETFL, ~O_NONBLOCK) need to know previous state using fcntl(F_GETFL). - On FreeBSD both are syscall */ -#ifdef __FreeBSD__ + ioctl() and fcntl() are syscalls on FreeBSD, Solaris 7/8 and Linux +*/ + +#if 1 int ngx_nonblocking(ngx_socket_t s) { |