Mercurial > hg > nginx
comparison src/event/ngx_event.c @ 5002:39c597272c8d
Events: added check for duplicate "events" directive.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 08 Jan 2013 14:03:37 +0000 |
parents | e1d11fb9a71f |
children | a29c574d61fa |
comparison
equal
deleted
inserted
replaced
5001:c37b9a17514d | 5002:39c597272c8d |
---|---|
890 void ***ctx; | 890 void ***ctx; |
891 ngx_uint_t i; | 891 ngx_uint_t i; |
892 ngx_conf_t pcf; | 892 ngx_conf_t pcf; |
893 ngx_event_module_t *m; | 893 ngx_event_module_t *m; |
894 | 894 |
895 if (*(void **) conf) { | |
896 return "is duplicate"; | |
897 } | |
898 | |
895 /* count the number of the event modules and set up their indices */ | 899 /* count the number of the event modules and set up their indices */ |
896 | 900 |
897 ngx_event_max_module = 0; | 901 ngx_event_max_module = 0; |
898 for (i = 0; ngx_modules[i]; i++) { | 902 for (i = 0; ngx_modules[i]; i++) { |
899 if (ngx_modules[i]->type != NGX_EVENT_MODULE) { | 903 if (ngx_modules[i]->type != NGX_EVENT_MODULE) { |