Guardian Procedure Calls Reference Manual

reference page either online or in the Open System Services System Calls Reference Manual
for details on the OSS process termination status.
In addition, a process deletion system message is sent to the MOM, GMOM, or ancestor
process according to the usual Guardian rules. The OSS process ID of the terminated process
is included in the process deletion message.
When the PROCESS_STOP_ procedure is used to stop an OSS process other than the caller,
the process handle must be specified in the call. The effect is the same as if the OSS kill()
function was called with the input parameters as follows:
The signal parameter set to SIGKILL to stop the process or SIGABEND to abend the
process
The pid parameter set to the OSS process ID of the process identified by processhandle
in the PROCESS_STOP_ call
The security rules that apply to stopping an OSS process using PROCESS_STOP_ are the same
as those that apply to the OSS kill() function. See the kill(2) function reference page
either online or in the Open System Services System Calls Reference Manual for details.
Examples
INT stop^option;
.
.
error := PROCESS_STOP_ ( proc^handle ); ! stop the identified
! process (normal
! termination)
stop^option := 1; ! set ABEND flag
error := PROCESS_STOP_ ( , , stop^option ); ! stop self
! (abnormal
! termination)
Related Programming Manual
For programming information about the PROCESS_STOP_ procedure, see the Guardian
Programmer's Guide. For information on batch processing, see the appropriate NetBatch manual.
PROCESS_STOP_ Procedure 1127