it remember me something else .... what about dbus signal ? Le 13 juillet 2010 13:49, Benoît Minisini <gam...@users.sourceforge.net> a écrit : > Hi, > > I don't remember who needed signal management in Gambas. > > But it's there now in Gambas 3 since revision #3037, through a new component > named "gb.signal" and a static class named "Signal". > > Signal.Ignore(<signal number>) to ignore a signal. > Signal.Catch(<signal number>) to catch a signal. > > A catched signal raises an event that must be handled by a static public > function named "Application_Signal" located in the startup class. That event > handler takes the signal number as argument. > > Signal.Reset(<signal number>) to reset a signal to its default behaviour. > > All signal numbers have associated numeric constants in the Signal class. For > example: Signal.Ignore(Signal.SIGINT) > > The signal management is not perfect yet. For example, don't override SIGCHLD > at the moment, otherwise process management won't work anymore. > > If you use it, please send your comments to me. > > Regards, > > -- > Benoît Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user >
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user