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