getpgrp
getpgrp pid
- Returns the current process group for the specified process ID (pid). Use a pid of for the current process. Invoking
getpgrpwill produce a fatal error if used on a machine that doesn't implement thegetpgrpsystem call. If pid is omitted, the function returns the process group of the current process (the same as using a pid of ). On systems implementing this operator with the POSIXgetpgrp(2)system call, pid must be omitted or, if supplied, must be .