Move EFAULT to the list of expected errors for ::read.
This commit is contained in:
parent
0c09070ce5
commit
7e4f349da8
@ -522,10 +522,10 @@ class SocketFdImpl {
|
|||||||
case EISDIR:
|
case EISDIR:
|
||||||
case EBADF:
|
case EBADF:
|
||||||
case ENXIO:
|
case ENXIO:
|
||||||
case EFAULT:
|
|
||||||
case EINVAL:
|
case EINVAL:
|
||||||
LOG(FATAL) << error;
|
LOG(FATAL) << error;
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
|
case EFAULT: // happens on various Android 13 phones manufactured by BBK Electronics
|
||||||
default:
|
default:
|
||||||
LOG(WARNING) << error;
|
LOG(WARNING) << error;
|
||||||
// fallthrough
|
// fallthrough
|
||||||
|
Loading…
Reference in New Issue
Block a user