Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: jloverso [...] mathworks.com
Cc:
AdminCc:

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



Subject: [PATCH] does not enable PROC_FS for Solaris >= 5.10
Download (untitled) / with headers
text/plain 691b
When configured and built under Solaris 5.10, I found that Proc::ProcessTable would only report on my own processes, and not those of any other user. It ends up that PROC_FS wasn't being defined, and the problem stems from this code in hints/solaris.pl: `uname -r` =~ /^(\d+\.\d+)/; if( $1 > 5.5 ){ $self->{DEFINE} = $self->{DEFINE} . " -DPROC_FS"; } Under Solaris 5.10, $1 == "5.10"; but (5.10 > 5.5) evaluates to FALSE Fixing the above conditional solves the problem. It could 'use version' and then use (qv($1) > qv(5.5)), but its simpler and more robust to use a regex not define PROC_PS on ancient Solaris systems. 17c17 < if( $1 > 5.5 ){ --- Show quoted text
> if( $1 !~ /^5.[012345]$/ ){


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.