Get the process group of the calling process.
#include <unistd.h> pid_t getpgrp (void);
None
The return value is the current process group. This function is always successful.