Is there a callback when main() returns with -1 and drops into the DefaultBackend?
If there is not, can we create one?
Stephen R. van den Berg wrote:
Is there a callback when main() returns with -1 and drops into the DefaultBackend?
If there is not, can we create one?
After an unsuccessful tour through the innards of Pike, looking for the spot where this happens; I decided to compromise by simply calling call_out(mycallback, 0).
It should be called whenever the DefaultBackend is started; it might be fooled by someone calling it only a few times earlier though.
pike-devel@lists.lysator.liu.se