AddInterruptCallback (open)
Add an interrupt (SIGINT,SIGTERM,SIGHUP) callback
Syntax
LOADLIB "wh::os.whlib";
MACRO AddInterruptCallback(MACRO PTR callback)
Parameters
MACRO PTR callback
Function pointer that will be called when a signal is set. Signature: MACRO callback().
Description
Registers a function as a callback for whenever a terminating signal is sent. If no callback is set, interrupt immediately terminates the current script. These callbacks are executed