getpid - get current process ID
#include <unistd.h> pid_t getpid();
Returns the PID (process ID) of the calling process.
The process ID of the calling process.
None.
getppid
gettid