getpid, getpgrp, getppid
Purpose
Gets the process, process group, and parent process IDs.
Syntax
int getpid ( )
int getpgrp ( )
int getppid ( )
Description
The getpid system call returns the process ID of the
calling process.
The getpgrp system call returns the process group ID of
the calling process.
The getppid system call returns the process ID of the
calling process's parent process.
Related Information
In this book: "exec: execl, execv, execle, execve,
execlp, execvp," "fork," "setpgrp," and "signal."