Klaus Demo nginx / 3dcad9c
Events: fixed copying of old events in poll init. Previously, the code incorrectly assumed "ngx_event_t *" elements instead of "struct pollfd". This is mostly cosmetic change, as this code is never called now. Maxim Dounin 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8383 }
8484
8585 if (event_list) {
86 ngx_memcpy(list, event_list, sizeof(ngx_event_t *) * nevents);
86 ngx_memcpy(list, event_list, sizeof(struct pollfd) * nevents);
8787 ngx_free(event_list);
8888 }
8989