comparison src/core/nginx.c @ 301:744965ec6275

nginx-0.0.3-2004-03-31-19:26:46 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 31 Mar 2004 15:26:46 +0000
parents 502b03d9d2a3
children 2e899477243a
comparison
equal deleted inserted replaced
300:502b03d9d2a3 301:744965ec6275
170 170
171 if (!ngx_inherited && ccf->daemon != 0) { 171 if (!ngx_inherited && ccf->daemon != 0) {
172 if (ngx_daemon(cycle->log) == NGX_ERROR) { 172 if (ngx_daemon(cycle->log) == NGX_ERROR) {
173 return 1; 173 return 1;
174 } 174 }
175 }
176
177 if (ccf->worker_processes == NGX_CONF_UNSET) {
178 ccf->worker_processes = 1;
179 } 175 }
180 176
181 if (ccf->pid.len == 0) { 177 if (ccf->pid.len == 0) {
182 ccf->pid.len = sizeof(NGINX_PID) - 1; 178 ccf->pid.len = sizeof(NGINX_PID) - 1;
183 ccf->pid.data = NGINX_PID; 179 ccf->pid.data = NGINX_PID;