Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Signal handling.

From: bga:bug-br at: 13-Nov-2003 0:58

On Wed, 12 Nov 2003 15:18:12 EST, [SunandaDH--aol--com] said:
> > Is there any way to handle signals sent to a rebol script? I have > > this > > script that *MUST* clean-up when receiving a SIGTERM. > > Just a guess. Can you trap a SIGTERM with an event handler? This > example > traps a close event. Not want you want, but maybe SIGTERMS come your > way too. > > unview/all > view/new layout [button "click me" [print "you clicked me"]] > > insert-event-func [ > if event/type = 'close [ > print "we are going to stop" > halt > ] > print event/type > Return event > ] > do-events
Thanks! The problem is that I am just using Rebol/Core. -Bruno -- Fortune Cookie Says: Not only is this incomprehensible, but the ink is ugly and the paper is from the wrong kind of tree. -- Professor W.