nginx-0.0.4-2004-06-11-10:15:08 import

This commit is contained in:
Igor Sysoev 2004-06-11 06:15:08 +00:00
parent 0ed19ccad1
commit d962b61c06
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ ngx_int_t ngx_rtsig_process_events(ngx_cycle_t *cycle)
overflow_current = 0;
ngx_event_actions.process = ngx_rtsig_process_overflow;
return NGX_OK;
return NGX_ERROR;
} else if (signo != -1) {
ngx_accept_mutex_unlock();

View File

@ -189,7 +189,7 @@ static ngx_int_t ngx_event_module_init(ngx_cycle_t *cycle)
shared = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED, -1, 0);
if (shared == NULL) {
if (shared == MAP_FAILED) {
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
"mmap(MAP_ANON|MAP_SHARED) failed");
return NGX_ERROR;