Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

getpgrp - get process group ID

&pagelevel(4)&pagelevel

Syntax

#include <unistd.h>

Optional
#include <sys/types.h> (End)

pid_t getpgrp(void);

Description

getpgrp() returns the process group ID of the calling process.

Return val.

Process group ID

The function is always successful.

See also

exec, fork(), getpid(), getppid(), kill(), setpgid(), setsid(),sys/types.h, unistd.h, and the manual "POSIX Basics" [1 (Related publications)].