Newer
Older
minerva / Base / usr / share / man / man2 / getppid.md
@minerva minerva on 13 Jul 389 bytes Initial commit
## Name

getppid - get current process's parent process ID

## Synopsis

```**c++
#include <unistd.h>

pid_t getppid();
```

## Description

Returns the PID (process ID) of the parent of the calling process.

## Return value

The process ID of the parent of the calling process.

## Errors

None.

## See also

-   [`getpid`(2)](help://man/2/getpid)
-   [`gettid`(2)](help://man/2/gettid)