mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibCore: Remove SessionManagement utilities
We don't need these, they are only relevant for SerenityOS system builds of LibCore.
This commit is contained in:
committed by
Andreas Kling
parent
1549d393b9
commit
0075048206
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <LibCore/LocalServer.h>
|
||||
#include <LibCore/Notifier.h>
|
||||
#include <LibCore/SessionManagement.h>
|
||||
#include <LibCore/Socket.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibCore/SystemServerTakeover.h>
|
||||
@@ -33,20 +32,6 @@ LocalServer::~LocalServer()
|
||||
::close(m_fd);
|
||||
}
|
||||
|
||||
ErrorOr<void> LocalServer::take_over_from_system_server(ByteString const& socket_path)
|
||||
{
|
||||
if (m_listening)
|
||||
return Error::from_string_literal("Core::LocalServer: Can't perform socket takeover when already listening");
|
||||
|
||||
auto const parsed_path = TRY(Core::SessionManagement::parse_path_with_sid(socket_path));
|
||||
auto socket = TRY(take_over_socket_from_system_server(parsed_path));
|
||||
m_fd = TRY(socket->release_fd());
|
||||
|
||||
m_listening = true;
|
||||
setup_notifier();
|
||||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> LocalServer::take_over_fd(int socket_fd)
|
||||
{
|
||||
if (m_listening)
|
||||
|
||||
Reference in New Issue
Block a user