comparison src/event/modules/ngx_rtsig_module.c @ 2912:c7d57b539248

return NULL instead of NGX_CONF_ERROR on a create conf failure
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Jun 2009 16:09:44 +0000
parents 6e7daf852eec
children d4c4cfdffe30 e1409e56ba7c
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
689 { 689 {
690 ngx_rtsig_conf_t *rtscf; 690 ngx_rtsig_conf_t *rtscf;
691 691
692 rtscf = ngx_palloc(cycle->pool, sizeof(ngx_rtsig_conf_t)); 692 rtscf = ngx_palloc(cycle->pool, sizeof(ngx_rtsig_conf_t));
693 if (rtscf == NULL) { 693 if (rtscf == NULL) {
694 return NGX_CONF_ERROR; 694 return NULL;
695 } 695 }
696 696
697 rtscf->signo = NGX_CONF_UNSET; 697 rtscf->signo = NGX_CONF_UNSET;
698 rtscf->overflow_events = NGX_CONF_UNSET; 698 rtscf->overflow_events = NGX_CONF_UNSET;
699 rtscf->overflow_test = NGX_CONF_UNSET; 699 rtscf->overflow_test = NGX_CONF_UNSET;