Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore KERN_NOT_SUPPORTED from thread_policy_set on mach
The `thread_policy_set` call in `aff_iterate` fails with `KERN_NOT_SUPPORTED` on M1 macbooks. The reported error from the regression tests is "Success" because `thread_policy_set` doesn't set errno. This patch converts `KERN_NOT_SUPPORTED` into a successful return and sets errno to `EINVAL` on other errors. This is ok in the regression tests as there affinity binding is only advisory. Fixes concurrencykit#186
- Loading branch information