commit | ef1d1f859b3a9599c6b134ef5996c7851503739d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Apr 16 00:25:25 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Apr 16 00:25:25 2007 +0200 |
tree | 2e352b7d68274267bbaee4d01b226b43909634ff | |
parent | b40d42006c6433432cca899d7b7a254dbfb0fac9 [diff] |
[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.