1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 12:55:09 +00:00

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.
This commit is contained in:
Andreas Kling 2021-01-31 09:24:46 +01:00
parent 50092ea0ca
commit 1b5be4a342
9 changed files with 11 additions and 39 deletions

View file

@ -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)