bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] )ERASE and )CLEAR erases native functions


From: Juergen Sauermann
Subject: Re: [Bug-apl] )ERASE and )CLEAR erases native functions
Date: Fri, 18 Apr 2014 19:58:57 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

I see. Actually the callback was introduced already earlier on your behalf.
I have changed the code slightly so that the native functions gets really erased.
Lets see if that works, SVN 214.

/// Jürgen


On 04/18/2014 05:44 PM, Elias Mårtenson wrote:
The problem is that the __attribute__ feature is GCC-specific. And the other standard ways of handling callbacks when loading/unloading libraries (__init and __fini) are also non-standard (they work on Linux and Solaris to my knowledge but likely not on many others).

I can't really think of a better way than a dedicated callback function when the symbol is )ERASEd.

Specifically, I would like to rollback any active transactions and close all SQL connections when this happens.

Being able to tell the interpreter to unload the library is less important, although if the former is done, the latter is probably trivial to implement?

Regards,
Elias






reply via email to

[Prev in Thread] Current Thread [Next in Thread]