[nginx] Events: fixed copying of old events in poll init.
Maxim Dounin
mdounin at mdounin.ru
Thu Jan 24 20:16:17 UTC 2019
details: https://hg.nginx.org/nginx/rev/e0e636ab10be
branches:
changeset: 7442:e0e636ab10be
user: Maxim Dounin <mdounin at mdounin.ru>
date: Thu Jan 24 21:50:37 2019 +0300
description:
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.
diffstat:
src/event/modules/ngx_poll_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c
--- a/src/event/modules/ngx_poll_module.c
+++ b/src/event/modules/ngx_poll_module.c
@@ -84,7 +84,7 @@ ngx_poll_init(ngx_cycle_t *cycle, ngx_ms
}
if (event_list) {
- ngx_memcpy(list, event_list, sizeof(ngx_event_t *) * nevents);
+ ngx_memcpy(list, event_list, sizeof(struct pollfd) * nevents);
ngx_free(event_list);
}
More information about the nginx-devel
mailing list