Bruno:

> 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
-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to