z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


setpgid

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-setpgid--pid--pgid------------------------------------------><

Function

setpgid invokes the setpgid callable service to place a process in a process group. To identify the group, you specify a process group ID. You can assign a process to a different group, or you can start a new group with that process as its leader.

Parameters

pid
The numeric process ID (PID) of the process to be placed in a process group. If the ID is specified as 0, the system uses the process ID of the calling process.
pgid
The ID of the process group. If the ID is specified as 0, the system uses the process group ID indicated by pid.

Usage notes

  1. The process group ID to be assigned to the group must be within the calling process's session.
  2. The subject process (the process identified by pid) must be a child of the process that issues the service, and it must be in the same session; but it cannot be the session leader. It can be the caller.

Example

In the following example, assume that pid and pgid were assigned values earlier in the exec:
"setpgid" pid pgid

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014