Recent

Author Topic: Test Hook To OS Signals  (Read 2630 times)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1342
  • Professional amateur ;-P
Re: Test Hook To OS Signals
« Reply #15 on: March 12, 2025, 03:50:12 pm »
Hey Davo,

@Gus
I think that's not possible any more in more recent versions. When I researched this via Google, and I think also on ChatGPT, they mentioned FpSignal.
But I got an error and had to opt for fpSigAction.
Hmm, works fine for me. I am using FPC324-branch and a "uses ... baseunix, ...

That's rather interesting!!! Thanks for double checking!!
I'll have a proper look at what I fucked up!!

Cannot thank you enough for your time spent on this !!

Cheers,
Gus

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12659
  • FPC developer.
Re: Test Hook To OS Signals
« Reply #16 on: March 12, 2025, 05:51:44 pm »
(signal is usually a wrapper that calls sigaction)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1342
  • Professional amateur ;-P
Re: Test Hook To OS Signals
« Reply #17 on: March 12, 2025, 07:35:03 pm »
Hey marcov,

(signal is usually a wrapper that calls sigaction)

Hey, also good to know!!

I guess I'll try again on signal since I really don't like having the warnings about non used variables. I hate them!! :D

Cheers,
Gus

 

TinyPortal © 2005-2018