[Webkit-unassigned] [Bug 132286] run-jsc-stress-tests: Silence warning about kernel interface hw.activecpu not available on Linux

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 29 17:37:17 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=132286


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #230306|review?, commit-queue?      |review-, commit-queue-
               Flag|                            |




--- Comment #2 from Darin Adler <darin at apple.com>  2014-04-29 17:37:38 PST ---
(From update of attachment 230306)
View in context: https://bugs.webkit.org/attachment.cgi?id=230306&action=review

> Tools/Scripts/run-jsc-stress-tests:77
> +    $numProcessors = `sysctl -n hw.activecpu 2>/dev/null`.to_i

I suggest this instead:

    $numProcessors = `sysctl -i -n hw.activecpu`.to_i

That’s much better than hiding all possible errors by routing them to /dev/null.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list