From 682a1afcf4f15bf1247704cf61d10832340abb33 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 8 Jan 2024 19:17:06 +0000 Subject: [PATCH] Revert "uevent.c: avoid POLLERR infinite loop" This reverts commit e44aa092c5fdcb15f2ae0cfab77c3fc2edc93766. Reason for revert: b/318929257 Change-Id: I5d114adcd3df31ea3745354d8021e50852cdc2ef --- Android.bp | 1 - uevent.c | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/Android.bp b/Android.bp index 871b1f9..409db5d 100644 --- a/Android.bp +++ b/Android.bp @@ -79,7 +79,6 @@ cc_library_shared { shared_libs: [ "android.system.suspend-V1-ndk", "libdl", - "liblog", ], header_libs: [ diff --git a/uevent.c b/uevent.c index 0dcae79..e40aa2e 100644 --- a/uevent.c +++ b/uevent.c @@ -16,8 +16,6 @@ #include -#include - #include #include #include @@ -96,16 +94,6 @@ int uevent_next_event(char* buffer, int buffer_length) return count; } } - - if (nr > 0 && (fds.revents & POLLERR)) { - int error = 0; - socklen_t errlen = sizeof(error); - getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &errlen); - - // see b/300009377, this used to be an infinite loop - // abort to try to recover - LOG_ALWAYS_FATAL("Uevent POLLERR: %s, on FD %d", strerror(error), fd); - } } // won't get here