mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +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:
parent
50092ea0ca
commit
1b5be4a342
9 changed files with 11 additions and 39 deletions
|
@ -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&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue