.TH getppid() "" "" "System Call (libc)"
.PC "Get process identifier of parent process"
.B "#include <unistd.h>"
.B "getppid(\|)"
.PP
.II "process^id"
Every process has a unique number, called its
.IR "process id" .
.B fork()
returns the process id of a created child process to the parent process.
.PP
.B getppid()
returns the process id of the requesting process's parent process.
In this way, a wayward child process can discover the identity of its parent.
.SH "See Also"
.Xr "fork()," fork
.Xr "getpid()," getpid
.Xr "kill," kill
.Xr "libc," libc
.Xr "mktemp," mktemp
.Xr "unistd.h" unistd.h
.br
\*(PX Standard, \(sc4.1.1
