CTRL SCRIPT SIGNAL HANDLER

Discussion about recent product features & solutions!
Search

Post Reply
2 posts • Page 1 of 1
User avatar
riccardo.crociani
Posts: 34
Joined: Tue Mar 31, 2015 10:52 am

CTRL SCRIPT SIGNAL HANDLER

Post by riccardo.crociani »

Hello,

is there any way to catch the signal (SIGTERM, SIGKILL) from inside a control script ?
That would be useful to perform a clean close.

Thanks for any help.

Riccardo

gschijndel
Posts: 207
Joined: Tue Jan 15, 2019 2:12 pm

Re: CTRL SCRIPT SIGNAL HANDLER

Post by gschijndel »

It is possible to connect to the 'exitRequested' event with 'sysConnect()' to catch the 'SIGTERM' signal. On a 'SIGKILL' it is not possible to perform a clean close.

Post Reply
2 posts • Page 1 of 1