1
Fork 0

std::os::errno returns platform specific value. fixes #21898

This commit is contained in:
Jormundir 2015-02-03 22:01:24 -08:00
parent ac134f7ca4
commit b877b77f13
4 changed files with 9 additions and 9 deletions

View file

@ -198,7 +198,7 @@ fn helper(input: libc::c_int, messages: Receiver<Req>, _: ()) {
assert_eq!(fd.read(&mut buf).ok().unwrap(), 1);
}
-1 if os::errno() == libc::EINTR as uint => {}
-1 if os::errno() == libc::EINTR as i32 => {}
n => panic!("helper thread failed in select() with error: {} ({})",
n, os::last_os_error())
}