Randy Kobes wrote:
On Tue, 21 Oct 2003, Stas Bekman wrote:


Steve Hay wrote:

Steve Hay wrote:


The attached patch skips the new getppid() test (perl/api.t) on Win32
since getppid() is unimplemented on this platform!

Weird:


% perldoc -f getppid
=item getppid

Returns the process id of the parent process.

Is it a bug in perl? why a non-portable function lives in perlfunc.pod?


I think the portability issues have been relegated to
perlport.pod, which reports that getppid is indeed
unimplemented on Win32.


Doesn't POSIX.pm provide a similar implementation?


It's also unimplemented under POSIX.pm.

Thank Randy. I've applied Steve's patch. Thanks Steve.


I guess nobody has tried using Apache::VMonitor on win32 then. We need to get the pid of the parent process in order to calculate the real mem usage (taking the sharing into an account). Doesn't win32 implement shared memory? I suppose not, since the is no fork. Am I correct?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to