File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
20
20
([ #542 ] ( https://github.com/nix-rust/nix/pull/542 ) )
21
21
- Changed type signature of ` sys::select::FdSet::contains ` to make ` self `
22
22
immutable ([ #564 ] ( https://github.com/nix-rust/nix/pull/564 ) )
23
+ - Changed type of ` sched::sched_setaffinity ` 's ` pid ` argument to ` pid_t `
23
24
24
25
### Fixed
25
26
- Fixed multiple issues compiling under different archetectures and OSes.
Original file line number Diff line number Diff line change @@ -91,9 +91,9 @@ mod ffi {
91
91
}
92
92
}
93
93
94
- pub fn sched_setaffinity ( pid : isize , cpuset : & CpuSet ) -> Result < ( ) > {
94
+ pub fn sched_setaffinity ( pid : pid_t , cpuset : & CpuSet ) -> Result < ( ) > {
95
95
let res = unsafe {
96
- libc:: sched_setaffinity ( pid as libc :: pid_t ,
96
+ libc:: sched_setaffinity ( pid,
97
97
mem:: size_of :: < CpuSet > ( ) as libc:: size_t ,
98
98
mem:: transmute ( cpuset) )
99
99
} ;
You can’t perform that action at this time.
0 commit comments