diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-11 14:21:09 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-11 14:55:21 +0400 |
commit | ae40b6613019f02e856b4b1ccc2712984506152e (patch) | |
tree | 19ab6fa2ae74eba1b071cbae4e6dc832f3556305 /uloop.h | |
parent | e5032709b29eb42568c3937a533898728a15efa1 (diff) |
uloop: rework event processing, fix use-after-free issues
Recursive calls to uloop_run() need to process already fetched events
first, before running kqueue/epoll to get more.
The state of cur_fd/cur_nfds and the event list needs to be maintained
properly to prevent accidental running of events pointing at deleted
uloop_fd structs.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uloop.h')
0 files changed, 0 insertions, 0 deletions