[fpc-pascal] Stopping daemon in linux
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Nov 9 21:21:36 CET 2009
On 09 Nov 2009, at 21:03, Michael Van Canneyt wrote:
> On Mon, 9 Nov 2009, "Vinzent Höfler" wrote:
>
>> As wrong as in "Don't call most system functions from within a
>> signal handler.", maybe?
>
> Hmm... In that case, many exceptions would not work either ?
The sigaction handlers for catching exceptions have been fixed quite a
while ago already to only collect the necessary information from the
signal context, and to then return from the signal handler to the
start of the RTL function that handles run time errors, passing this
info as arguments (we can pass at least 3 items on every platform by
modifying the parameter register contents in the signal context; we
also change the instruction pointer in the context so that it returns
to the RTL's runerror handler rather than to wherever the signal was
triggered).
Jonas
More information about the fpc-pascal
mailing list