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:
parent
1545514ed8
commit
c84629a2f8
@ -916,7 +916,7 @@ mod solaris {
|
|||||||
let result = unsafe {
|
let result = unsafe {
|
||||||
libc::processor_bind(
|
libc::processor_bind(
|
||||||
libc::P_PID,
|
libc::P_PID,
|
||||||
libc::PS_MYID,
|
libc::getpid(),
|
||||||
core_id.0.try_into().unwrap(),
|
core_id.0.try_into().unwrap(),
|
||||||
std::ptr::null_mut(),
|
std::ptr::null_mut(),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user