HomeManualTopicsTypesSymbols

std::getsid

returns the process ID of the session leader of the process group

Parameter

id
the process ID

Result

id: an integer describing the session leader's process ID

Description

This function needs I/O-access rights.

Topic

POSIX

See also

std::getpid returns the process ID
std::getppid returns the parent process ID