]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] delay registering of listener sockets at startup
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Apr 2007 17:29:56 +0000 (19:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Apr 2007 17:29:56 +0000 (19:29 +0200)
commit2ff7622c0cf0d8f1ea45ccbe6f23d2e9449f7b91
tree506117419a431d5d627753ca91f5996f7e0a2838
parent8755285486cb2fce86836e260ec834f8bb41f144
[MAJOR] delay registering of listener sockets at startup

Some pollers such as kqueue lose their FD across fork(), meaning that
the registered file descriptors are lost too. Now when the proxies are
started by start_proxies(), the file descriptors are not registered yet,
leaving enough time for the fork() to take place and to get a new pollfd.
It will be the first call to maintain_proxies that will register them.
include/proto/fd.h
include/types/fd.h
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/fd.c
src/haproxy.c
src/proxy.c