getppid function

Get parent process ID Returns the process id of the parent process.