diff options
author | Steven Moreland <smoreland@google.com> | 2024-01-08 19:17:06 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-01-08 19:17:06 +0000 |
commit | 682a1afcf4f15bf1247704cf61d10832340abb33 (patch) | |
tree | 009d777191ba178478bfafb00cf5681740a3b057 | |
parent | e44aa092c5fdcb15f2ae0cfab77c3fc2edc93766 (diff) | |
download | libhardware_legacy-682a1afcf4f15bf1247704cf61d10832340abb33.tar.gz |
Revert "uevent.c: avoid POLLERR infinite loop"
This reverts commit e44aa092c5fdcb15f2ae0cfab77c3fc2edc93766.
Reason for revert: b/318929257
Change-Id: I5d114adcd3df31ea3745354d8021e50852cdc2ef
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | uevent.c | 12 |
2 files changed, 0 insertions, 13 deletions
@@ -79,7 +79,6 @@ cc_library_shared { shared_libs: [ "android.system.suspend-V1-ndk", "libdl", - "liblog", ], header_libs: [ @@ -16,8 +16,6 @@ #include <hardware_legacy/uevent.h> -#include <log/log.h> - #include <malloc.h> #include <string.h> #include <unistd.h> @@ -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 |