module init hook

Cal Heldenbrand cal at fbsdata.com
Wed Jan 6 15:45:28 UTC 2010


Hello,

Is there a good method to load my module in the main varnishd thread?
Currently I'm just adding some inline code to vcl_recv to open up my shared
lib and call dlsym() to load my functions.  Looking at the compiled VCL
code, is it possible to inject something in VGC_Init()?  And, would that
load my module once on startup, then still be available to each handler
thread?

Thanks!

--Cal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/vinyl-dev/attachments/20100106/29bd1c16/attachment.html>


More information about the vinyl-dev mailing list