[fpc-pascal] How can I trap signals

ik idokan at gmail.com
Tue Jan 3 12:36:27 CET 2012


On Tue, Jan 3, 2012 at 12:24, ik <idokan at gmail.com> wrote:

> On Tue, Jan 3, 2012 at 12:16, <michael.vancanneyt at wisa.be> wrote:
>
>>
>>
>> On Tue, 3 Jan 2012, ik wrote:
>>
>>  Hello,
>>>
>>> I wish to trap two signals in Linux (ABRT and HUP), how can I do that ?
>>>
>>
>> Install a signal handler.
>>
>> See e.g.
>>
>> http://www.freepascal.org/**docs-html/rtl/baseunix/**fpsigaction.html<http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html>
>>
>> For an example.
>>
>
> Thank you,  it helped a lot.
>
>
>>
>> Michael.
>> ______________________________**_________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
>> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>>
>
>
> Ido
>


In order to help myself and others to know and remember, I'ved added an
Example to Github:
https://github.com/ik5/blog-examples/blob/master/fpc/signals1/signals.lpr

Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120103/852776f2/attachment.html>


More information about the fpc-pascal mailing list