Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-01

How can I trap signals

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik
to Unknown author
Show quoted text 17 lines
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.

Show quoted text 6 lines
Michael. ______________________________**_________________ fpc-pascal maillist - http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>

Ido

Reply by email

ik
to ik
ik wrote 33 lines
On Tue, Jan 3, 2012 at 12:16, 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 - > 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

Reply by email