Package Info

perl-Linux-Pid


Get the native PID and the PPID on Linux


Development/Libraries/Perl

Why should one use a module to get the PID and the PPID of a process where there are the '$$' variable and the 'getppid()' builtin ? (Not mentioning the equivalent 'POSIX::getpid()' and 'POSIX::getppid()' functions.)

In fact, this is useful on Linux, with multithreaded programs. Linux' C library, using the linux thread model, returns different values of the PID and the PPID from different threads. (Other thread models such as NPTL don't have the same behaviour). This module forces perl to call the underlying C functions 'getpid()' and 'getppid()'.


License: Artistic-1.0 or GPL-2.0+
URL: http://search.cpan.org/dist/Linux-Pid/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.04-bp160.1.12 info GA Release 2014-07-21 16.0
  • x86-64
  • perl-Linux-Pid