getppid
Returns the process ID of the parent process. On the typical Unix system, if your parent process ID changes to 1, your parent process has died and you've been adopted by the init program.
1
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]