LibIPC: Move early fd deallocation workaround to the transport layer

Reimplements c3121c9d at the transport layer, allowing us to solve the
same problem once, in a single place, for both the LibIPC connection and
MessagePort. This avoids exposing a workaround for a macOS specific Unix
domain socket issue to higher abstraction layers.
This commit is contained in:
Aliaksandr Kalenik 2025-04-07 23:41:24 +02:00 committed by Alexander Kalenik
parent 3525467e56
commit ab35325003
Notes: github-actions[bot] 2025-04-08 19:10:45 +00:00
7 changed files with 78 additions and 128 deletions

View file

@ -760,8 +760,6 @@ public:
generator.append(R"~~~(
case (int)IPC::LargeMessageWrapper::MESSAGE_ID:
return TRY(IPC::LargeMessageWrapper::decode(message_endpoint_magic, stream, files));
case (int)IPC::Acknowledgement::MESSAGE_ID:
return TRY(IPC::Acknowledgement::decode(message_endpoint_magic, stream, files));
)~~~");
generator.append(R"~~~(