commit | bc5c4a4659596ee1eab14b2f9650816cafa9f55d | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bvanassche@google.com> | Fri Oct 14 09:13:19 2022 -0700 |
committer | Bart Van Assche <bvanassche@google.com> | Thu Oct 20 09:32:51 2022 -0700 |
tree | f72c844825cd36e88f814e3c883b37f5eb8d11cd | |
parent | a1c8a622b25ea742a340453d1a9ed527081b5bca [diff] |
init/epoll: Make Epoll::Wait() easier to use Invoke the callback functions from inside Epoll::Wait() instead of returning a vector with pointers to callback functions. Remove handlers after handler invocation finished to prevent that self-removal triggers a use-after-free. The CL that made Epoll::Wait() return a vector is available at https://android-review.googlesource.com/c/platform/system/core/+/1112042. Bug: 213617178 Change-Id: I52c6ade5746a911510746f83802684f2d9cfb429 Signed-off-by: Bart Van Assche <bvanassche@google.com>