summaryrefslogtreecommitdiff
path: root/libs/gui/BufferReleaseChannel.cpp
diff options
context:
space:
mode:
author Patrick Williams <pdwilliams@google.com> 2024-10-28 15:25:47 -0500
committer Patrick Williams <pdwilliams@google.com> 2024-10-28 15:36:55 -0500
commit603c2ea98cf0934f1ad0f9511dae31cfb372e9f2 (patch)
tree3887e099e40947505934affc792c08398535d2a9 /libs/gui/BufferReleaseChannel.cpp
parentbb504471bbefd0fe7d93fd216c12e6cec345b669 (diff)
Add unit tests to check that BufferReleaseChannel is unidirectional
Bug: 294133380 Flag: com.android.graphics.libgui.flags.buffer_release_channel Test: BufferReleaseChannelTest Change-Id: Iae20dc9e24826fbfd372717d64081a40c7ab1bab
Diffstat (limited to 'libs/gui/BufferReleaseChannel.cpp')
-rw-r--r--libs/gui/BufferReleaseChannel.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/libs/gui/BufferReleaseChannel.cpp b/libs/gui/BufferReleaseChannel.cpp
index eb50684412..e9cb013baf 100644
--- a/libs/gui/BufferReleaseChannel.cpp
+++ b/libs/gui/BufferReleaseChannel.cpp
@@ -339,13 +339,6 @@ status_t BufferReleaseChannel::open(std::string name,
return -errno;
}
- // Make the producer write-only
- if (shutdown(producerFd.get(), SHUT_RD) == -1) {
- ALOGE("[%s] Failed to shutdown reading on producer socket. errno=%d message='%s'",
- name.c_str(), errno, strerror(errno));
- return -errno;
- }
-
outConsumer = std::make_unique<ConsumerEndpoint>(name, std::move(consumerFd));
outProducer = std::make_shared<ProducerEndpoint>(std::move(name), std::move(producerFd));
return STATUS_OK;