Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Catching OS signal SIGINT during a DIALOG  (Read 5503 times)
Enrico S.
Posts: 31

« on: June 19, 2014, 03:05:17 pm »

Is there a way to catch an OS signal SIGINT (or SIGQUIT) inside a DIALOG ?

The purpose of this is to detect when another process send a signal to a running BDL program.
I figured a code stub similar to the following:

INPUT BY NAME my_field_list
    CALL my_func()

Running the code stub above, the INTERRUPT action is triggered if the user press the INTERRUPT button. This is correct, obviously.
If I send a SIGINT signal to the program process from OS (by example "kill -2 fglrun_pid") the INPUT detect the signal (as you can see with debugger) but no action is triggered.

I known that the signal handling is provided to allow user to stop a time expensive process while a DIALOG is waiting for it.
My question sound like a different behaviour I would like be supported in Genero.

May be I'm in error and Genero does support a similar behaviour ?

Someone had a similar need and found a solution ?

With best regards.

Reuben B.
Four Js
Posts: 977

« Reply #1 on: June 25, 2014, 07:45:51 am »

Perhaps expand on your requirements, and clarify what sort of signal/message you want to send.

Something like this maybe close.

The difficulty with most of these types of requests is having to have something in every dialog statement in order to respond to the notification no matter what dialog you are in and/or do you want to respond to the signal/message straight away or can it wait until the user finishes what they are doing.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of
Contributor to
Pages: [1]
  Reply  |  Print  
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines