Go to the previous, next section.
pid_t getpid(void);
pid_t getppid(void);
getpid
returns the process id of the current task and
getppid
returns the process id of the parent task.
getpid
: the pid of the current task.
getppid
: the pid of the parent task.
Go to the previous, next section.