[kea-dev] Is it possible for hooks to hande server shutdown?

Dave Cole davecole at nbnco.com.au
Fri Oct 6 00:57:50 UTC 2017


> The load and unload points are in the same file wrapped in the same extern "C". 
> 
> In my in-expect browsing of the code I could not see any way that the unload hook was being called on server exit.  I was just hoping someone with a clue would confirm that for me, and maybe suggest a way to achieve the same effect.
> 
> Using onexit is not going to work since a hook reload would almost certainly cause a segfault during server exit.

I do not pretend to understand what is going on, but when I built my hook on centos7, the unload callback is being invoked during server shutdown.

Oh well...


More information about the kea-dev mailing list