Linux::Pid man page on Mageia

Man page or keyword search:  
man Server   17783 pages
apropos Keyword Search (all sections)
Output format
Mageia logo
[printable version]

Pid(3)		      User Contributed Perl Documentation		Pid(3)

NAME
       Linux::Pid - Get the native PID and the PPID on Linux

SYNOPSIS
	   use Linux::Pid;
	   print Linux::Pid::getpid(), "\t", Linux::Pid::getppid(), "\n";

	   use Linux::Pid qw(getpid getppid);
	   print getpid(), "\t", getppid(), "\n";

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

AUTHOR
       Copyright (c) 2002-2007 Rafael Garcia-Suarez. All rights reserved. This
       program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.18.1			  2007-06-12				Pid(3)
[top]

List of man pages available for Mageia

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net