Back to Serenity

Getpid

Base/usr/share/man/man2/getpid.md

latest343 B
Original Source

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