Add a warning comment to "poller_fd::closed"

This commit is contained in:
2017-05-06 21:09:04 +02:00
parent 9866675bb7
commit 22edb6d489
2 changed files with 4 additions and 0 deletions

View File

@@ -1326,6 +1326,9 @@ struct poller_fd
int fd; ///< Our file descriptor
short events; ///< The poll() events we registered for
// Make triple sure that no forked child is keeping the FD,
// otherwise we may access freed memory on Linux (poor epoll design)
bool closed; ///< Whether fd has been closed already
poller_fd_fn dispatcher; ///< Event dispatcher