bolts: fix solaris cpu binding (#1699)

Seems `PS_MYID` to save one syscall was not really working, explicit current id makes the test always pass.
This commit is contained in:
David CARLIER 2023-11-27 21:34:12 +00:00 committed by GitHub
parent 1545514ed8
commit c84629a2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -916,7 +916,7 @@ mod solaris {
let result = unsafe {
libc::processor_bind(
libc::P_PID,
libc::PS_MYID,
libc::getpid(),
core_id.0.try_into().unwrap(),
std::ptr::null_mut(),
)