summaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-10-30 20:05:57 +0100
committerMax Kellermann <max@musicpd.org>2018-10-30 20:05:57 +0100
commitdaffefdb10f5893d3beccee528d537d9c35d0574 (patch)
tree90ac1f3fbbc4bd56127f6a599eb8fb62994c92b2 /src/Listen.cxx
parent5fb21fbdb1290a1adc0130cdb7997a420ed679e3 (diff)
event/ServerSocket: pass UniqueSocketDescriptor to AddFD()
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 1dc97af2a..3b1893b4f 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -24,6 +24,7 @@
#include "config/Data.hxx"
#include "config/Option.hxx"
#include "config/Net.hxx"
+#include "net/UniqueSocketDescriptor.hxx"
#include "system/Error.hxx"
#include "util/RuntimeError.hxx"
#include "fs/AllocatedPath.hxx"
@@ -66,7 +67,7 @@ listen_systemd_activation(ClientListener &listener)
for (int i = SD_LISTEN_FDS_START, end = SD_LISTEN_FDS_START + n;
i != end; ++i)
- listener.AddFD(i);
+ listener.AddFD(UniqueSocketDescriptor(i));
return true;
}