NAME
getpid – get the process ID
SYNOPSIS
1 2 |
#include<unistd.h> pid_t getpid(void); |
DESCRIPTION
The getpid() function shall return the process ID of the calling process.
RETURN VALUE
The getpid() function shall always be successful and no return value is reserved to indicate an error.
ERRORS
No errors are defined.