summaryrefslogtreecommitdiff
path: root/src/system/EventPipe.cxx
diff options
context:
space:
mode:
authorHyShai <HyShai@users.noreply.github.com>2018-12-18 15:23:40 -0500
committerGitHub <noreply@github.com>2018-12-18 15:23:40 -0500
commit18c042d4cf5c81edaa7e60d743ce098a1156834e (patch)
treee5bc335a047ef1ee0a707a07e464a0de7b4b4678 /src/system/EventPipe.cxx
parent98f92d828a72d5ce984d2d4ae2193a4533b280e5 (diff)
remove non-block call
This is similar to https://github.com/MusicPlayerDaemon/MPD/commit/b177bffa6a5f1b69639b6cd759dcb16fdd76e5e2, in that it fixes the Windows issue of connecting to the open socket. Also, the listen_socket is set to AcceptNonBlock after the connection anyways.
Diffstat (limited to 'src/system/EventPipe.cxx')
-rw-r--r--src/system/EventPipe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/EventPipe.cxx b/src/system/EventPipe.cxx
index 6d2be2a53..21fc523d9 100644
--- a/src/system/EventPipe.cxx
+++ b/src/system/EventPipe.cxx
@@ -102,7 +102,7 @@ PoorSocketPair(int fd[2])
assert (fd != nullptr);
UniqueSocketDescriptor listen_socket;
- if (!listen_socket.CreateNonBlock(AF_INET, SOCK_STREAM, IPPROTO_TCP))
+ if (!listen_socket.Create(AF_INET, SOCK_STREAM, IPPROTO_TCP))
throw MakeSocketError("Failed to create socket");
if (!listen_socket.Bind(IPv4Address(IPv4Address::Loopback(), 0)))