diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-02-06 17:21:13 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-02-06 17:21:13 +0000 |
commit | 7300977320e04280c13d4d89a279f75af9c5f893 (patch) | |
tree | 6c935b625eb2dbd83e71e5b2e23ac83bfd88aded /src/core/nginx.c | |
parent | 2a2d2b5094ee88dba5984eddfc4135b66bb8007e (diff) | |
download | nginx-7300977320e04280c13d4d89a279f75af9c5f893.tar.gz nginx-7300977320e04280c13d4d89a279f75af9c5f893.zip |
nginx-0.0.1-2003-02-06-20:21:13 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index 3133f8792..895d13666 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -27,6 +27,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log); /* STUB */ int ngx_max_conn = 512; +u_int ngx_sendfile_flags; ngx_server_t ngx_server; /* */ @@ -53,11 +54,16 @@ int main(int argc, char *const *argv) /* */ #if (WIN32) - ngx_init_sockets(&ngx_log); + + if (ngx_init_sockets(&ngx_log) == NGX_ERROR) { + exit(1); + } + #else + ngx_set_signals(&ngx_log); -#endif +#endif ngx_init_array(ngx_listening_sockets, ngx_pool, 10, sizeof(ngx_listen_t), 1); |