Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

getppid - get parent process ID

&pagelevel(4)&pagelevel

Syntax

#include <unistd.h>

Optional
#include <sys/types.h> (End)

pid_t getppid(void);

Description

getppid() returns the parent process ID of the calling process.

Return val.

Parent process ID of the calling process.

The function is always successful.

See also

exec, fork(), getpgrp(), getpid(), kill(), setpgid(), setsid(), sys/types.h, unistd.h.