[fpc-pascal] Stopping daemon in linux

"Vinzent Höfler" JeLlyFish.software at gmx.net
Mon Nov 9 20:33:13 CET 2009


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?


Vinzent.

-- 
DSL-Preisknaller: DSL Komplettpakete von GMX schon für 
16,99 Euro mtl.!* Hier klicken: http://portal.gmx.net/de/go/dsl02



More information about the fpc-pascal mailing list