HomeManualTopicsTypesSymbols

std::getpid

returns the process ID

Parameters

None

Result

id: an integer describing the process ID

Description

This function needs I/O-access rights.

Topic

POSIX

See also

std::getppid returns the parent process ID
std::getuid returns the real user ID
std::getgid returns the real group ID