[fpc-pascal] Stopping daemon in linux
Michael Van Canneyt
michael at freepascal.org
Mon Nov 9 21:03:34 CET 2009
On Mon, 9 Nov 2009, "Vinzent Höfler" wrote:
> Michael Van Canneyt <michael at freepascal.org>:
>
>> On Mon, 9 Nov 2009, Wimpie Nortje wrote:
>>
>> It should stop the daemons properly. This is the code that gets executed:
>>
>> Procedure DoShutDown(Sig : Longint; Info : PSigInfo; Context :
>> PSigContext);
>> cdecl;
>>
>> begin
>> Application.StopDaemons(True);
>> Application.Terminate;
>> end;
>>
>> If it doesn't, something is wrong :(
>
> 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 ?
Michael.
More information about the fpc-pascal
mailing list