should not break if poll timeout (#19578)
old-commit-hash: 37826c00324cc8f9c9eae9650cafc0df6c838ebe
This commit is contained in:
@@ -2148,7 +2148,7 @@ void cameras_run(MultiCameraState *s) {
|
||||
fds[1].events = POLLPRI;
|
||||
|
||||
int ret = poll(fds, ARRAYSIZE(fds), 1000);
|
||||
if (ret <= 0) {
|
||||
if (ret < 0) {
|
||||
if (errno == EINTR || errno == EAGAIN) continue;
|
||||
LOGE("poll failed (%d - %d)", ret, errno);
|
||||
break;
|
||||
|
||||
@@ -1167,7 +1167,7 @@ void cameras_run(MultiCameraState *s) {
|
||||
fds[0].events = POLLPRI;
|
||||
|
||||
int ret = poll(fds, ARRAYSIZE(fds), 1000);
|
||||
if (ret <= 0) {
|
||||
if (ret < 0) {
|
||||
if (errno == EINTR || errno == EAGAIN) continue;
|
||||
LOGE("poll failed (%d - %d)", ret, errno);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user