Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Wednesday March 05, 2003
04:27 PM

Solaris quirk of the day

[ #10913 ]
I was tracking down what I thought was a bug in sys-cpu. When I would try to get the cpu state information for cpu 0 (on a 2 cpu machine), it would choke. I went to straight C code and, sure enough, process_info(0,&pi_struct) was returning -1, which was odd.

Then I tried replacing "0" with "1" and it worked (and so did "2"). It turns out that on some Solaris systems, the cpu number starts at 0, and on others it starts on 1 - how daft. This may be a 5.6 thing, but I'm not sure. Good to know at least.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.