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
commit 8afcf0d87a
Notes: sideshowbarker 2024-07-19 06:00:35 +09:00
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;