[Klone-users] Entry points of main loop
Stefano Barbato
barbato at koanlogic.com
Fri Jan 9 12:38:55 EST 2009
[ Sorry, my reply got lost somehow; here it is again ]
Hi Mickael,
KLone provides a few hooks you can use to plug-in your own code. You
can add hooks at the following stages:
- before server start and just before server shuts down
- a child process has been started/terminated
- a new HTTP request has been served
If those hooks are not enough you can patch the server_loop() function
(server.c file).
More info at:
http://wiki.koanlogic.com/doku.php?id=user-provided_hooks
bye,
s
On 08/gen/09, at 14:55, Mickael Auger wrote:
> Hi,
>
> I would like execute an additionnal processing before,after and
> during the main loop of KLone process.
> So I needed 3 entry points for :
> - execute function before main loop
> - execute function during main loop
> - execute function after main loop
>
> These tiny processing would allow me to intercept many events send
> by another process.
>
> Can you show the lines of source code that I could modify to do
> this, please ?
>
>
> Moreover I would like to exit "kloned" process since one of entry
> points, can I tell me the good function to terminate KLone correctly ?
>
>
> Many thanks.
>
> --
> MickaÎl AUGER
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
More information about the Klone-users
mailing list