mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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
Notes:
sideshowbarker
2024-07-19 06:00:35 +09:00
Author: https://github.com/bugaevc
Commit: 8afcf0d87a
Pull-request: https://github.com/SerenityOS/serenity/pull/2430
Reviewed-by: https://github.com/alimpfard
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