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:
parent
53647e347f
commit
8afcf0d87a
3 changed files with 22 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue