Mercurial > hg > nginx
diff src/os/unix/ngx_posix_init.c @ 373:018569a8f09c
nginx-0.0.7-2004-06-30-19:30:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Jun 2004 15:30:41 +0000 |
parents | 0fb6c53fb135 |
children | da8c5707af39 |
line wrap: on
line diff
--- a/src/os/unix/ngx_posix_init.c +++ b/src/os/unix/ngx_posix_init.c @@ -3,6 +3,7 @@ #include <ngx_core.h> +int ngx_ncpu; int ngx_max_sockets; int ngx_inherited_nonblocking; @@ -84,6 +85,10 @@ int ngx_posix_init(ngx_log_t *log) ngx_pagesize = getpagesize(); + if (ngx_ncpu == 0) { + ngx_ncpu = 1; + } + for (sig = signals; sig->signo != 0; sig++) { ngx_memzero(&sa, sizeof(struct sigaction)); sa.sa_handler = sig->handler;