8 Feb
2010
8 Feb
'10
5:45 p.m.
On 8.2.2010, at 17.40, Valery Gorbunov wrote:
I am developing plugin for Dovecot. And I needs for read some configuration file at startup and store configuration in application wide variable. As I see the plugin_init() method calls multiple times and allocates plugin's variables each time. Could you suggest better way to store variable in application context.
plugin_init() is called once for every process (and a separate process is created for each connection). If you want to share state between multiple processes, you need to use files or something else.