You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Chris Reynolds <sh...@gmail.com> on 2011/06/13 17:34:40 UTC

Detecting unloading of plugin

Hi,

I have written a HTTP plugin to Traffic Server but I cannot work out
how to detect when the plugin is unloaded. I need this information so
I can un-initialise all of my objects and close files, etc. Is there
anyway of acheiving this? I have tried using on_exit, atexit,
__attribute__((destructor)) but it never seems to call them. I can
catch the signal SIGTERM but it is too late by then. I am using
'trafficserver stop' to stop it.

Thank-you,

Chris Reynolds.