Returns the process group ID.
Syntax | 
  | 
   #include <sys/types.h>
   #include <unistd.h>
   pid_t getpgrp (void);
  | 
Parameters | 
  | 
None.
Return Values | 
  | 
The process group ID of the calling process.
Description | 
  | 
The getpgrp() function returns the process group ID of the calling process.
Implementation Considerations | 
  | 
None.
Errors | 
  | 
None.
See Also | 
  | 
getpid(), sigaction(), POSIX.1 (Section 4.3.1)