File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
31
31
([ #542 ] ( https://github.com/nix-rust/nix/pull/542 ) )
32
32
- Changed type signature of ` sys::select::FdSet::contains ` to make ` self `
33
33
immutable ([ #564 ] ( https://github.com/nix-rust/nix/pull/564 ) )
34
+ - Changed type of ` sched::sched_setaffinity ` 's ` pid ` argument to ` pid_t `
34
35
35
36
### Removed
36
37
- Removed io::Error from nix::Error and conversion from nix::Error to Errno
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