aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c10
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);