mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +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
|
@ -45,7 +45,6 @@ public:
|
|||
{
|
||||
ASSERT(this->socket().is_connected());
|
||||
this->socket().on_ready_to_read = [this] { this->drain_messages_from_peer(); };
|
||||
this->initialize_peer_info();
|
||||
}
|
||||
|
||||
virtual ~ClientConnection() override
|
||||
|
@ -54,21 +53,18 @@ public:
|
|||
|
||||
void did_misbehave()
|
||||
{
|
||||
dbgln("{} (id={}, pid={}) misbehaved, disconnecting.", *this, m_client_id, client_pid());
|
||||
dbgln("{} (id={}) misbehaved, disconnecting.", *this, m_client_id);
|
||||
this->shutdown();
|
||||
}
|
||||
|
||||
void did_misbehave(const char* message)
|
||||
{
|
||||
dbgln("{} (id={}, pid={}) misbehaved ({}), disconnecting.", *this, m_client_id, client_pid(), message);
|
||||
dbgln("{} (id={}) misbehaved ({}), disconnecting.", *this, m_client_id, message);
|
||||
this->shutdown();
|
||||
}
|
||||
|
||||
int client_id() const { return m_client_id; }
|
||||
|
||||
pid_t client_pid() const { return this->peer_pid(); }
|
||||
void set_client_pid(pid_t pid) { this->set_peer_pid(pid); }
|
||||
|
||||
virtual void die() = 0;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue