1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 11:34:59 +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

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -37,9 +37,8 @@ Client::Client()
void Client::handshake()
{
auto response = send_sync<Messages::ImageDecoderServer::Greet>(getpid());
auto response = send_sync<Messages::ImageDecoderServer::Greet>();
set_my_client_id(response->client_id());
set_server_pid(response->server_pid());
}
void Client::handle(const Messages::ImageDecoderClient::Dummy&)