Mercurial > hg > nginx
diff src/os/unix/ngx_socket.h @ 645:4946078f0a79 release-0.3.44
nginx-0.3.44-RELEASE import
*) Feature: the "wait" parameter in the "include" SSI command.
*) Feature: the Ukrainian and Byelorussian characters were added to
koi-win conversion table.
*) Bugfix: in the SSI.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 04 May 2006 15:32:46 +0000 |
parents | 2ff194b74f1e |
children | d620f497c50f |
line wrap: on
line diff
--- a/src/os/unix/ngx_socket.h +++ b/src/os/unix/ngx_socket.h @@ -29,9 +29,12 @@ int ngx_blocking(ngx_socket_t s); #else -#define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK) +#define ngx_nonblocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK) #define ngx_nonblocking_n "fcntl(O_NONBLOCK)" +#define ngx_blocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) & ~O_NONBLOCK) +#define ngx_blocking_n "fcntl(!O_NONBLOCK)" + #endif int ngx_tcp_nopush(ngx_socket_t s);