To get a signal, the program should be run in the loop while (1), and it is not suitable for the architecture of openframeworks - openframeworks the duty cycle is the glutmainloop(), and it is impossible to break into.
About the pipes - process.kill() to forcibly kills the process and no handling exit code in the app does not work.
To solve the problem I wrote a little program-companion, that periodically checks whether the process of my application, otherwise it executes the necessary commands.
↧
Stop forced exit
↧