We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d6baba commit ab7b8dbCopy full SHA for ab7b8db
src/unix.rs
@@ -460,14 +460,10 @@ mod linux {
460
)
461
}) {
462
Ok(cnt) => Ok(cnt.try_into().unwrap()),
463
- Err(err) if err.raw_os_error() == Some(libc::EOPNOTSUPP) => {
+ Err(err) if matches!(err.raw_os_error(), Some(libc::EOPNOTSUPP | libc::ENOSYS)) => {
464
IS_NONBLOCKING_READ_UNSUPPORTED.store(true, Ordering::Relaxed);
465
Err(io::ErrorKind::Unsupported.into())
466
}
467
- Err(err) if err.kind() == io::ErrorKind::Unsupported => {
468
- IS_NONBLOCKING_READ_UNSUPPORTED.store(true, Ordering::Relaxed);
469
- Err(err)
470
- }
471
Err(err) => Err(err),
472
473
0 commit comments