[Gambas-user] Detect signals?

Benoit Minisini gambas at ...1...
Mon May 26 19:55:16 CEST 2008


On lundi 26 mai 2008, Ron wrote:
> Hi,
>
> Is it possible to detect unix signals from within gambas application?
> So you can for example run your own exit code when a application gets
> killed, or ctrl-c-ed?
>
> eg.
> SIG{INT}
> SIG{BREAK}
> SIG{KILL}
> SIG{HUP}
> SIG{PIPE}
> SIG{CHLD}
>
> Regards,
> Ron.
>

Not yet, but this is planned for 3.0.

You will have something like a global static event handler named 
Application_Signal that will tell you which signal was raised. Maybe some 
signal will not be catchable.

Regards,

-- 
Benoit Minisini




More information about the User mailing list