[BUG] the epoll FD must not be shared between processes
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Jun 2007 14:40:44 +0000 (16:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jun 2007 14:40:44 +0000 (16:40 +0200)
commitfb8983f21b69f3341fc5a4076ab3c98887d16463
tree7b0d1a4194fc360e95cb650b6aad331e828c28f1
parentab3e1d313cc581ffa96530579cfa6580b2248f50
[BUG] the epoll FD must not be shared between processes

Recreate the epoll file descriptor after a fork(). It will ensure
that all processes will not share their epoll_fd. Some side effects
were encountered because of this, such as epoll_wait() returning an
FD which was previously deleted, in multi-process mode.
src/ev_epoll.c
src/ev_sepoll.c