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

Move sched_getaffinity back to Linux #3557

Merged
merged 1 commit into from
May 4, 2024
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented May 4, 2024

This reverts commit c1a3f85. The shim isn't actually useful for anything, and it is untested on FreeBSD. On Linux it exists solely because std and num_cpus are trying this before falling back to sysconf, but on FreeBSD that's not how they work, so there's no reason I can see to have this stub shim on FreeBSD.

@RalfJung
Copy link
Member Author

RalfJung commented May 4, 2024

@devnexen do you have a use-case where adding this function (always returning EINVAL) actually helps? If so, we should add a test, but otherwise I'd prefer to revert.

@devnexen
Copy link
Contributor

devnexen commented May 4, 2024

might be wiser to revert we can always add back if context changes.

@RalfJung
Copy link
Member Author

RalfJung commented May 4, 2024

Okay, thanks for clarifying!
@bors r+

@bors
Copy link
Contributor

bors commented May 4, 2024

📌 Commit ad60e8b has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented May 4, 2024

⌛ Testing commit ad60e8b with merge 9a7c124...

@bors
Copy link
Contributor

bors commented May 4, 2024

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 9a7c124 to master...

@bors bors merged commit 9a7c124 into rust-lang:master May 4, 2024
8 checks passed
@RalfJung RalfJung deleted the getaffinity branch May 4, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants