Win32::Getppid - Implementation of getppid() for windows
use Win32::Getppid; my $parent_pid = getppid;
This module simply provides an implementation of getppid for Windows, where it is usually missing. It doesn't do anything on non-Windows platforms, so you can safely make it a non-OS specific dependency for your CPAN module.
Returns the parent process id for the current process. This is imported by default only in a real Windows environment (
$^O eq 'MSWin32'). On Cygwin getppid returns the cygwin parent process, for the real windows parent process id on cygwin you can use the fully qualified version:
my $windows_ppid = Win32::Getppid::getppid();
Graham Ollis <email@example.com>
This software is copyright (c) 2015 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.