diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2006-05-04 15:32:46 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2006-05-04 15:32:46 +0000 |
| commit | ac72bd17d1c845b81aa9d1050b764ba1018ae462 (patch) | |
| tree | e7df03607b73b7c1cca5438fa02b6022c0e37e74 /src/os/unix/ngx_socket.h | |
| parent | 2cca46c774157b529c439eafe0083d75e74f138a (diff) | |
| download | nginx-release-0.3.44.tar.gz nginx-release-0.3.44.tar.bz2 | |
nginx-0.3.44-RELEASE importrelease-0.3.44
*) 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.
Diffstat (limited to '')
| -rw-r--r-- | src/os/unix/ngx_socket.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os/unix/ngx_socket.h b/src/os/unix/ngx_socket.h index b381967e6..9e6a859bb 100644 --- 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); |
