Subject: | [PATCH] does not enable PROC_FS for Solaris >= 5.10 |
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]$/ ){