diff options
Diffstat (limited to 'src/sched.rs')
-rw-r--r-- | src/sched.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sched.rs b/src/sched.rs index 2ecc0564..943b432b 100644 --- a/src/sched.rs +++ b/src/sched.rs @@ -96,7 +96,7 @@ pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { let res = unsafe { libc::sched_setaffinity(pid.into(), mem::size_of::<CpuSet>() as libc::size_t, - mem::transmute(cpuset)) + &cpuset.cpu_set) }; Errno::result(res).map(drop) |