From b2171d707af5cbce414481637f9fbcd3e2419b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Fri, 25 May 2018 10:24:45 -0400 Subject: [PATCH] network engine: properly apply flag MSG_NOSIGNAL --- src/network_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network_engine.cpp b/src/network_engine.cpp index de2cc1f3..c38a79ae 100644 --- a/src/network_engine.cpp +++ b/src/network_engine.cpp @@ -661,7 +661,7 @@ NetworkEngine::send(const char *buf, size_t len, int flags, const SockAddr& addr if (s < 0) return EAFNOSUPPORT; #ifdef MSG_NOSIGNAL - flags &= MSG_NOSIGNAL; + flags |= MSG_NOSIGNAL; #endif if (sendto(s, buf, len, flags, addr.get(), addr.getLength()) == -1) { int err = errno;