1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Add port devel/p5-Linux-Pid:

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

WWW: http://search.cpan.org/dist/Linux-Pid/
This commit is contained in:
Andrew Pantyukhin 2006-08-01 20:12:19 +00:00
parent 42e2f09a6e
commit c74a8d91a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169392
5 changed files with 44 additions and 0 deletions

View File

@ -1119,6 +1119,7 @@
SUBDIR += p5-Iterator-Misc
SUBDIR += p5-Iterator-Util
SUBDIR += p5-Java
SUBDIR += p5-Linux-Pid
SUBDIR += p5-List-Cycle
SUBDIR += p5-List-Group
SUBDIR += p5-Locale-Maketext

View File

@ -0,0 +1,21 @@
# New ports collection makefile for: p5-Linux-Pid
# Date created: 1 August 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Linux-Pid
DISTVERSION= 0.03
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Get native PID and the PPID
PERL_CONFIGURE= YES
MAN3= Linux::Pid.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Linux-Pid-0.03.tar.gz) = e5595654b51070c1f2e7b503beaca093
SHA256 (Linux-Pid-0.03.tar.gz) = 1d90bb098ef865aec115ac760fe7146e70ba8ce420277791b1e1b56fb1616fc5
SIZE (Linux-Pid-0.03.tar.gz) = 2277

View File

@ -0,0 +1,12 @@
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().
WWW: http://search.cpan.org/dist/Linux-Pid/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/%%PERL_ARCH%%/Linux/Pid.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid/Pid.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid/Pid.so
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Linux