Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os: add fallback for undefined CPUs #25493

Closed
wants to merge 1 commit into from
Closed

os: add fallback for undefined CPUs #25493

wants to merge 1 commit into from

Commits on Jan 16, 2019

  1. os: add fallback for undefined CPUs

    For an unsupported OS, a call to os.cpus() throws an error
    within os.cpus() itself where it tries to get the length of it.
    This fixes the issue by adding fallback for undefined CPUs.
    
    Fixes: #25483
    PR-URL: #25493
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    JungMinu committed Jan 16, 2019
    Configuration menu
    Copy the full SHA
    02a5daf View commit details
    Browse the repository at this point in the history