commit | 2ff7622c0cf0d8f1ea45ccbe6f23d2e9449f7b91 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Apr 09 19:29:56 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Apr 09 19:29:56 2007 +0200 |
tree | 506117419a431d5d627753ca91f5996f7e0a2838 | |
parent | 8755285486cb2fce86836e260ec834f8bb41f144 [diff] |
[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.