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

[REBOL] Re: Signal handling.

From: SunandaDH:aol at: 12-Nov-2003 15:18

> 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