[fpc-devel] Catch a signal

Sven Barth pascaldragon at googlemail.com
Mon Jan 28 12:24:52 CET 2013


Am 28.01.2013 12:20, schrieb Michael Schnell:
> Hi Linux fans,
>
> I'd like to catch a signal sent to a Linux program.
>
> Here: http://www.freepascal.org/docs-html/rtl/oldlinux/signal.html I 
> see: "Install signal handler (deprecated) ... This call has the same 
> functionality as the *SigAction* call. "
>
> So I tried to do this: 
> http://www.freepascal.org/docs-html/rtl/oldlinux/sigaction.html
>
> It does not compile, as the unit oldlinux is not compiled in the 
> "normal" Lazarus svn installation.
>
> So I tried to add the directory of oldlinux.pp to the project options 
> (no problem).
>
> This now asks for adding multiple more  directories with inc files (no 
> problem either)
>
> But finally the project gets linker errors, as "lineinfo" is not 
> provided.
>
> Trying to add this seemingly results in recompiling the complete rtl, 
> which I of course don't want to do.
>
> So: Hot to catch a signal ?
What does the name "old" imply to you?

Nevertheless: The functionality of SigAction is provided by FpSigAction 
in the unit BaseUnix. For documentation and an example look here: 
http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130128/564ea98c/attachment.html>


More information about the fpc-devel mailing list