]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] auto-registering of pollers at load time
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Apr 2007 22:25:25 +0000 (00:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Apr 2007 22:25:25 +0000 (00:25 +0200)
commitef1d1f859b3a9599c6b134ef5996c7851503739d
tree2e352b7d68274267bbaee4d01b226b43909634ff
parentb40d42006c6433432cca899d7b7a254dbfb0fac9
[MAJOR] auto-registering of pollers at load time

Gcc provides __attribute__((constructor)) which is very convenient
to execute functions at startup right before main(). All the pollers
have been converted to have their register() function declared like
this, so that it is not necessary anymore to call them from a centralized
file.
include/proto/fd.h
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/fd.c
src/haproxy.c