GETPGRP(2-POSIX) RISC/os Reference Manual GETPGRP(2-POSIX)
NAME
getpgrp - get process group
SYNOPSIS
#include <sys/types.h>
pidt getpgrp()
DESCRIPTION
getpgrp returns the process group ID of the calling process.
Process groups are used for distribution of signals, and by
terminals to arbitrate requests for their input; processes
that have the same process group as the terminal are fore-
ground processes.
This call is thus used by programs such as csh(1) to create
process groups in implementing job control. The tcgetpgrp
and tcsetpgrp calls are used to get/set the process group of
the control terminal.
SEE ALSO
setpgid(2), setsid(2), sigaction(2), tcgetpgrp(3),
tcsetpgrp(3).
Printed 1/15/91 Page 1