summaryrefslogtreecommitdiff
path: root/Servers/AudioServer
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-11-26 19:33:48 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-11-26 19:58:25 +0100
commitbd559389858370fdd696fa93f88ff999e95fff2d (patch)
tree79bbab009b1d63e7f0ca51bf9941f8121efb3875 /Servers/AudioServer
parent22a05621d5def8240c0fb9249747d6c561b49c1c (diff)
downloadserenity-bd559389858370fdd696fa93f88ff999e95fff2d.zip
AudioServer: Port to socket takeover
Diffstat (limited to 'Servers/AudioServer')
-rw-r--r--Servers/AudioServer/ASEventLoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/AudioServer/ASEventLoop.cpp b/Servers/AudioServer/ASEventLoop.cpp
index 4df03e522d..3792bba505 100644
--- a/Servers/AudioServer/ASEventLoop.cpp
+++ b/Servers/AudioServer/ASEventLoop.cpp
@@ -7,8 +7,8 @@
ASEventLoop::ASEventLoop()
: m_server(CLocalServer::construct())
{
- unlink("/tmp/asportal");
- m_server->listen("/tmp/asportal");
+ bool ok = m_server->take_over_from_system_server();
+ ASSERT(ok);
m_server->on_ready_to_accept = [this] {
auto client_socket = m_server->accept();
if (!client_socket) {