1GETPGRP(2) 386BSD Programmer's Manual GETPGRP(2) 2 3NNAAMMEE 4 ggeettppggrrpp - get process group 5 6SSYYNNOOPPSSIISS 7 _p_i_d__t 8 ggeettppggrrpp(_i_n_t _p_i_d) 9 10DDEESSCCRRIIPPTTIIOONN 11 The process group of the specified process is returned by ggeettppggrrpp(). If 12 _p_i_d is zero, the call applies to the current process. 13 14 Process groups are used for distribution of signals, and by terminals to 15 arbitrate requests for their input: processes that have the same process 16 group as the terminal are foreground and may read, while others will 17 block with a signal if they attempt to read. 18 19 This call is thus used by programs such as csh(1) to create process 20 groups in implementing job control. The TIOCGPGRP and TIOCSPGRP calls 21 described in termios(4) are used to get/set the process group of the 22 control terminal. 23 24SSEEEE AALLSSOO 25 setpgrp(2), getuid(2), termios(4) 26 27HHIISSTTOORRYY 28 The ggeettppggrrpp function call appeared in 4.0BSD. 29 304.2 Berkeley Distribution March 10, 1991 1 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67