Skip Menu |
 

This queue is for tickets about the Proc-ProcessTable CPAN distribution.

Report information
The Basics
Id: 40996
Status: resolved
Priority: 0/
Queue: Proc-ProcessTable

People
Owner: Nobody in particular
Requestors: REHSACK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.45
Fixed in: (no value)



Subject: Dynamic collecting fields breaks first fields() call
Download (untitled) / with headers
text/plain 541b
e47e:/home/ezktm/BDC > perl -MProc::ProcessTable -e 'my $pt = Proc::ProcessTable->new(); my @fields = $pt->fields(); printf( "<%s>\n", join( ">\n<", @fields ) );' <pid> <pid> <ppid> <sess> <pgrp> <uid> <suid> <luid> <euid> <gid> <egid> <priority> <nice> <thcount> <stat> <flags> <flags2> <adspace> <majflt> <minflt> <utime> <stime> <cutime> <cstime> <start> <size> <tsize> <ttyp> <ttynum> <ttympx> <drss> <trss> <dvm> <pctmem> <pctcpu> <comm> <cmndline> BTW: why are not simply used the static char *Fields[] from the OS-dependent x.h?
I cannot follow the bug description, can you clarify?
Download (untitled) / with headers
text/plain 190b
The request is from 2008 - the codebase has changed a bit ;) In 2008, P::PT didn't allow access to internal "char *Fields[]" via ->fields(), the code fetched an entry and extracted the keys.
I see. One bug less.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.