diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-06-30 15:30:41 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-30 15:30:41 +0000 |
commit | 078d1b2c2263690f2f6b7217b567eeeb525910d0 (patch) | |
tree | dfb82cccd10c3dee8a500506f7692b0445200e5c /src/os/unix/ngx_posix_init.c | |
parent | 0a94cfd2ae9ca87b4d988b5066f739a3034f3bff (diff) | |
download | nginx-078d1b2c2263690f2f6b7217b567eeeb525910d0.tar.gz nginx-078d1b2c2263690f2f6b7217b567eeeb525910d0.zip |
nginx-0.0.7-2004-06-30-19:30:41 import
Diffstat (limited to 'src/os/unix/ngx_posix_init.c')
-rw-r--r-- | src/os/unix/ngx_posix_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/unix/ngx_posix_init.c b/src/os/unix/ngx_posix_init.c index f94ffffc6..7498ae609 100644 --- 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; |