$ZSIGPROC()

Sends a signal to a process. The format for the $ZSIGPROC function is:

$ZSIGPROC(expr1,expr2)
[Caution] Caution

Although $ZSIGPROC() may work today as a way to invoke the asynchronous interrupt mechanism of GT.M processes to XECUTE $ZINTERRUPT because the underlying mechanism uses the POSIX USR1 signal, FIS reserves the right to change the underlying mechanism to suit its convenience and sending a POSIX USR1 may cease to work as a way to invoke the asynchronous interrupt mechanism. Use MUPIP INTRPT as the supported and stable API to invoke the asynchronous interrupt mechanism.

Examples of $ZSIGPROC()

Example:

GTM>job ^Somejob
GTM>set ret=$&gtmposix.signalval("SIGUSR1",.sigusr1) zwrite 
ret=0
sigusr1=10
GTM>write $zsigproc($zjob,sigusr1)
0
GTM>

This example sends the SIGUSR1 signal to the pid specified by $zjob.