summaryrefslogtreecommitdiff
path: root/Userland/Services/ImageDecoder
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-31 09:24:46 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-31 09:29:27 +0100
commit1b5be4a342e0dc0ec4b45849fff92f61d573af36 (patch)
tree74c23f787baddced55be2cea44d269119810e277 /Userland/Services/ImageDecoder
parent50092ea0ca37f0818d07c25651f2b5ad0f0acc2a (diff)
downloadserenity-1b5be4a342e0dc0ec4b45849fff92f61d573af36.zip
LibIPC: Stop exchanging client/server PIDs in greeting handshake
The PIDs were used for sharing shbufs between processes, but now that we have migrated to file descriptor passing, we no longer need to know the PID of the other side.
Diffstat (limited to 'Userland/Services/ImageDecoder')
-rw-r--r--Userland/Services/ImageDecoder/ClientConnection.cpp5
-rw-r--r--Userland/Services/ImageDecoder/ImageDecoderServer.ipc2
2 files changed, 3 insertions, 4 deletions
diff --git a/Userland/Services/ImageDecoder/ClientConnection.cpp b/Userland/Services/ImageDecoder/ClientConnection.cpp
index db8d663e2b..97fd11eb2f 100644
--- a/Userland/Services/ImageDecoder/ClientConnection.cpp
+++ b/Userland/Services/ImageDecoder/ClientConnection.cpp
@@ -51,10 +51,9 @@ void ClientConnection::die()
exit(0);
}
-OwnPtr<Messages::ImageDecoderServer::GreetResponse> ClientConnection::handle(const Messages::ImageDecoderServer::Greet& message)
+OwnPtr<Messages::ImageDecoderServer::GreetResponse> ClientConnection::handle(const Messages::ImageDecoderServer::Greet&)
{
- set_client_pid(message.client_pid());
- return make<Messages::ImageDecoderServer::GreetResponse>(client_id(), getpid());
+ return make<Messages::ImageDecoderServer::GreetResponse>(client_id());
}
OwnPtr<Messages::ImageDecoderServer::DecodeImageResponse> ClientConnection::handle(const Messages::ImageDecoderServer::DecodeImage& message)
diff --git a/Userland/Services/ImageDecoder/ImageDecoderServer.ipc b/Userland/Services/ImageDecoder/ImageDecoderServer.ipc
index 64ebc04b26..c8d393ad4d 100644
--- a/Userland/Services/ImageDecoder/ImageDecoderServer.ipc
+++ b/Userland/Services/ImageDecoder/ImageDecoderServer.ipc
@@ -1,6 +1,6 @@
endpoint ImageDecoderServer = 7001
{
- Greet(i32 client_pid) => (i32 client_id, i32 server_pid)
+ Greet() => (i32 client_id)
DecodeImage(Core::AnonymousBuffer data) => (bool is_animated, u32 loop_count, Vector<Gfx::ShareableBitmap> bitmaps, Vector<u32> durations)
}