Guardian Procedure Calls Reference Manual

Rules for stopping a Guardian process: process access IDs and creator access IDs
If the process is a local process and the request to stop it is also from a local process,
these user IDs or associated processes may stop the process:
local super ID
the process' creator access ID (CAID) or the group manager of the CAID
the process' process access ID (PAID) or the group manager of the PAID
If the process is a local process, a remote process cannot stop it.
If the process is a remote process running on this node and the request to stop it is from
a local process on this node, then these user IDs or associated processes may stop the
process:
local super ID
the process' creator access ID (CAID) or the group manager of the CAID
the process' process access ID (PAID) or the group manager of the PAID
If the process is a remote process on this node and the request to stop it is from a remote
process, these user IDs or associated processes may stop the process:
a network super ID
the process' network process access ID
the process' network process access ID group manager
the process' network creator access ID
the process' network creator access ID group manager
where network ID implies that the user IDs or associated process creators have matching
remote passwords.
Being local on a system means that the process has logged on by successfully calling
VERIFYUSER on the system or that the process was created by a process that had done so. A
process is also considered local if it is run from a program file that has the PROGID attribute
set.
Rules for stopping an OSS process
The same rules apply when stopping an OSS process with the STOP procedure as apply for
the OSS kill() function. See the kill(2) function reference page either online or in the
Open System Services System Calls Reference Manual.
Rules for stopping any process; stop mode
When one process attempts to stop another process, another item checked is the stop mode
of the process. The stop mode is a value associated with every process that determines which
other processes can stop the process. The stop mode, set by procedure SETSTOP, is defined
as follows:
ANY other process can stop the process.0
ONLY the process qualified by the above rules can stop the process.1
NO other process can stop the process.2
Returning control to the caller before the process is stopped
When error is 0, STOP returns control to the caller before the specified process is actually
stopped. Although the process does not execute any more user code, make sure that it has
terminated before you attempt to access a file that it had open with exclusive access or before
STOP Procedure (Superseded by PROCESS_STOP_ Procedure) 1401