summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man2/getpid.md
blob: b266ab8f05e4fe2e6aaebfc7e78fef0b5a4696cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Name

getpid - get current process ID

## Synopsis

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

pid_t getpid();
```

## Description

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

## Return value

The process ID of the calling process.

## Errors

None.

## See also

* [`getppid`(2)](help://man/2/getppid)
* [`gettid`(2)](help://man/2/gettid)