From a2f9dc75c76a378effb19a0807a1182aceb2b73b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 3 Nov 2017 11:20:39 +0100 Subject: [PATCH] Set SO_NOSIGPIPE on proper socket. --- common/TracySocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index c6bf9dc8..9e057cea 100644 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -253,7 +253,7 @@ Socket* ListenSocket::Accept() int sock = accept( m_sock, (sockaddr*)&remote, &sz); #if defined __APPLE__ int val = 1; - setsockopt( m_sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof( val ) ); + setsockopt( sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof( val ) ); #endif if( sock == -1 ) {