[Gambas-devel] GB.Signal.Register() keeps program running?
gambas at ...1...
Tue Feb 4 23:44:08 CET 2014
Le 04/02/2014 18:04, Tobias Boege a écrit :
> Hi Benoit,
> I wondered why all gb.ncurses programs (even if they don't watch any input
> fds) won't quit after they finished Main(). The reason is that gb.ncurses
> registers a signal handler via GB.Signal.Register() (because removing that
> line from the sources makes those programs terminate after Main()).
> Is this intentional? Can't we register a signal handler and anyway quit
> normally after Main() if the signal didn't came?
Yes, you must use GB.Signal.Unregister() to remove the signal handler.
More information about the Devel