<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 28.01.2013 12:20, schrieb Michael
Schnell:<br>
</div>
<blockquote cite="mid:51065EFE.70508@lumino.de" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi Linux fans, <br>
<br>
I'd like to catch a signal sent to a Linux program. <br>
<br>
Here: <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.freepascal.org/docs-html/rtl/oldlinux/signal.html">http://www.freepascal.org/docs-html/rtl/oldlinux/signal.html</a>
I see: "Install signal handler (deprecated) ... This call has the
same functionality as the <b>SigAction</b> call. " <br>
<br>
So I tried to do this: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.freepascal.org/docs-html/rtl/oldlinux/sigaction.html">http://www.freepascal.org/docs-html/rtl/oldlinux/sigaction.html</a><br>
<br>
It does not compile, as the unit oldlinux is not compiled in the
"normal" Lazarus svn installation. <br>
<br>
So I tried to add the directory of oldlinux.pp to the project
options (no problem). <br>
<br>
This now asks for adding multiple more directories with inc files
(no problem either)<br>
<br>
But finally the project gets linker errors, as "lineinfo" is not
provided. <br>
<br>
Trying to add this seemingly results in recompiling the complete
rtl, which I of course don't want to do. <br>
<br>
So: Hot to catch a signal ? <br>
</blockquote>
What does the name "old" imply to you?<br>
<br>
Nevertheless: The functionality of SigAction is provided by
FpSigAction in the unit BaseUnix. For documentation and an example
look here:
<a class="moz-txt-link-freetext" href="http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html">http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html</a><br>
<br>
Regards,<br>
Sven<br>
</body>
</html>