Loading...
Select Version
&pagelevel(4)&pagelevel
Syntax | #include <unistd.h> pid_t getpgid(pid_t pid); | |
Description |
| |
Return val. | Process group ID | |
if successful. | ||
(pid_t)-1 | if an error occurs. | |
Errors |
| |
|
| The process whose process ID is pid is not in the same session as the calling process, and the implementation does not allow access to the process group ID of this process from within the calling process. |
|
| There is no process with a process ID pid. |
|
| The value of pid is invalid. |
See also |
|