getpgrp(2)
_________________________________________________________________
getpgrp System Call
Get process group.
_________________________________________________________________
SYNTAX
None.
int getpgrp (pid)
int pid;
PARAMETERS
pid This argument specifies the process whose process
group is to be returned. If zero, the process
group of the calling process is returned. This
argument is optional.
DESCRIPTION
The process group of the specified process is returned by
getpgrp. If <pid> is zero or not present the process group of
the calling process is returned.
ACCESS CONTROL
No access checking is performed.
RETURN VALUE
<process group>
The call succeeded. The group list was returned
in <gidset>.
-1 The specified process does not exist. Errno is
set to indicate the error.
EXCEPTIONS
Errno may be set to the following error code:
ESRCH The process specified by <pid> does not exist.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
getpgrp(2)
SEE ALSO
The related system calls: setpgrp
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)