getpgrp - get the process group ID of the calling process
#include <sys/types.h> #include <unistd.h> pid_t getpgrp(void);
The getpgrp() function returns the process group ID of the calling process.
The getpgrp() function is always successful and no return value is reserved to indicate an error.
No errors are defined.
None.
None.
None.
exec, fork(), getpgid(), getpid(), getppid(), kill(), setpgid(), setsid(), <sys/types.h>, <unistd.h>.
Derived from Issue 1 of the SVID.