Comment 3 for bug 867918

Revision history for this message
bhaskar (bhaskar) wrote :

Using ZSYSTEM to fire off a number of MUPIP INTRPT has a fair amount of overhead. You can instead use the lightweight $ZSIGPROC(pid,signal) function to send a signal - it returns 0 for success 1 for failure. The downside of the API is that you have to specify the signal numerically, which makes the code less portable. Also, the documented & recommended MUPIP INTRPT API will remain upward compatible in the (unlikely) event we decide to change the mechanism.

GTM>zsystem "ls -l GTM_JOBEXAM*"_$job_"_*"
ls: cannot access GTM_JOBEXAM*25801_*: No such file or directory

GTM>write $zsigproc($job,10)
0
GTM>zsystem "ls -l GTM_JOBEXAM*"_$job_"_*"
-rw-r--r-- 1 kbhaskar gtc 1612 2011-10-04 21:57 GTM_JOBEXAM.ZSHOW_DMP_25801_3

GTM>write $zsigproc(1,10)
1
GTM>

Yes, $zsigproc() should be documented. It will be one day.