You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 7550d0c6e95d9645f94db47f1829bafd8a4c3dd9)
getppid

Returns the process id of the parent process.

Note for Linux users: Between v5.8.1 and v5.16.0 Perl would work around non-POSIX thread semantics the minority of Linux systems (and Debian GNU/kFreeBSD systems) that used LinuxThreads, this emulation has since been removed. See the documentation for $$ for details.

Portability issues: "getppid" in perlport.