mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: PID/TID typing
This compiles, and contains exactly the same bugs as before. The regex 'FIXME: PID/' should reveal all markers that I left behind, including: - Incomplete conversion - Issues or things that look fishy - Actual bugs that will go wrong during runtime
This commit is contained in:
committed by
Andreas Kling
parent
f225321184
commit
f5744a6f2f
@@ -56,7 +56,7 @@ Socket::Socket(int domain, int type, int protocol)
|
||||
, m_protocol(protocol)
|
||||
{
|
||||
auto& process = *Process::current();
|
||||
m_origin = { process.pid(), process.uid(), process.gid() };
|
||||
m_origin = { process.pid().value(), process.uid(), process.gid() };
|
||||
}
|
||||
|
||||
Socket::~Socket()
|
||||
@@ -83,7 +83,7 @@ RefPtr<Socket> Socket::accept()
|
||||
auto client = m_pending.take_first();
|
||||
ASSERT(!client->is_connected());
|
||||
auto& process = *Process::current();
|
||||
client->m_acceptor = { process.pid(), process.uid(), process.gid() };
|
||||
client->m_acceptor = { process.pid().value(), process.uid(), process.gid() };
|
||||
client->m_connected = true;
|
||||
client->m_role = Role::Accepted;
|
||||
return client;
|
||||
|
||||
Reference in New Issue
Block a user