[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
> traps a close event. Not want you want, but maybe SIGTERMS come your
> way too.
> view/new layout [button "click me" [print "you clicked me"]]
> insert-event-func [
> if event/type = 'close [
> print "we are going to stop"
> print event/type
> Return event
Thanks! The problem is that I am just using Rebol/Core.
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.