1GETPGRP(2)                    System Calls Manual                   GETPGRP(2)
2
3
4

NAME

6       getpgrp - get process group
7

SYNOPSIS

9       pgrp = getpgrp(pid)
10       int pgrp;
11       int pid;
12

DESCRIPTION

14       The  process group of the specified process is returned by getpgrp.  If
15       pid is zero, then the call applies to the current process.
16
17       Process groups are used for distribution of signals, and  by  terminals
18       to  arbitrate  requests  for  their input: processes that have the same
19       process group as the terminal are foreground and may read, while others
20       will block with a signal if they attempt to read.
21
22       This  call  is  thus  used by programs such as csh(1) to create process
23       groups in implementing job control.  The TIOCGPGRP and TIOCSPGRP  calls
24       described  in  tty(4) are used to get/set the process group of the con‐
25       trol terminal.
26

SEE ALSO

28       setpgrp(2), getuid(2), tty(4)
29
30
31
324.2 Berkeley Distribution       August 26, 1985                     GETPGRP(2)
Impressum