1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibCore: Do not assert that we can start the RPC server

Now that the Shell uses Core::EventLoop, we can't afford to just crash if /tmp
is unwritable.
This commit is contained in:
Sergey Bugaev 2020-05-28 18:19:49 +03:00 committed by Andreas Kling
parent 53647e347f
commit 8afcf0d87a
3 changed files with 22 additions and 15 deletions

View file

@ -123,13 +123,13 @@ bool LocalServer::listen(const String& address)
rc = ::bind(m_fd, (const sockaddr*)&un, sizeof(un));
if (rc < 0) {
perror("bind");
ASSERT_NOT_REACHED();
return false;
}
rc = ::listen(m_fd, 5);
if (rc < 0) {
perror("listen");
ASSERT_NOT_REACHED();
return false;
}
m_listening = true;