Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release > by-pkgid > 33c5e2b74a4c18e27d8dc99db18b6d7f

perl-Linux-Pid-0.40.0-24.mga9.x86_64.rpm

Description:

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()'.

Sources packages:

Other version of this rpm: