Go to the previous, next section.

getppid

SYNOPSIS

pid_t getpid(void);

pid_t getppid(void);

DESCRIPTION

getpid returns the process id of the current task and getppid returns the process id of the parent task.

RETURN VALUE

getpid: the pid of the current task. getppid: the pid of the parent task.

Go to the previous, next section.