getpid(2) — System Calls
OSF
NAME
getpid, getpgrp, getppid − Gets the process ID, process group ID, parent process ID
SYNOPSIS
#include <unistd.h>
#include <sys/types.h>
pid_t getpid( void );
pid_t getpgrp( void );
pid_t getppid( void );
DESCRIPTION
The getpid() function returns the process ID of the calling process.
The getpgrp() function returns the process group ID of the calling process.
The getppid() function returns the parent process ID of the calling process. When a process is created, its parent process ID is the process ID of its parent process. If a parent process exits, the parent process IDs of its child processes are changed to the process ID of init.
NOTES
AES Support Level:
Full use
RELATED INFORMATION
System calls: fork(2), kill(2), setpgid(2), setsid(2), wait(2)