Everywhere: Hand pid of new process to client in launch_server_process()

Allows WebContentClient to get pid of WebContent process right after
creation, so there is no window between forking and
notify_process_information() IPC response, when client doesn't know the
pid.
This commit is contained in:
Aliaksandr Kalenik
2024-06-18 19:11:51 +03:00
committed by Andreas Kling
parent 3110411c60
commit c46bea479c
5 changed files with 5 additions and 11 deletions

View File

@@ -55,7 +55,6 @@ ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::LocalSocket> sock
, m_page_host(PageHost::create(*this))
{
m_input_event_queue_timer = Web::Platform::Timer::create_single_shot(0, [this] { process_next_input_event(); });
async_notify_process_information({ ::getpid() });
}
ConnectionFromClient::~ConnectionFromClient() = default;