Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_interrupted
1 parent dc37959 commit eb627eaCopy full SHA for eb627ea
library/std/src/sys/solid/net.rs
@@ -183,8 +183,7 @@ pub(super) fn error_name(er: abi::ER) -> Option<&'static str> {
183
184
#[inline]
185
pub fn is_interrupted(er: abi::ER) -> bool {
186
- let errno = netc::SOLID_NET_ERR_BASE - er;
187
- errno as libc::c_int == libc::EINTR
+ er == netc::SOLID_NET_ERR_BASE - libc::EINTR
188
}
189
190
pub(super) fn decode_error_kind(er: abi::ER) -> ErrorKind {
0 commit comments