No signals on sockets.

This commit is contained in:
Bartosz Taudul 2017-09-22 20:02:15 +02:00
parent f47b7a1cdf
commit 5919f5f5e8

View File

@ -19,6 +19,7 @@ namespace tracy
{ {
#ifdef _MSC_VER #ifdef _MSC_VER
# define MSG_NOSIGNAL 0
struct __wsinit struct __wsinit
{ {
__wsinit() __wsinit()
@ -113,7 +114,7 @@ int Socket::Send( const void* _buf, int len )
auto start = buf; auto start = buf;
while( len > 0 ) while( len > 0 )
{ {
auto ret = send( m_sock, buf, len, 0 ); auto ret = send( m_sock, buf, len, MSG_NOSIGNAL );
if( ret == -1 ) return -1; if( ret == -1 ) return -1;
len -= ret; len -= ret;
buf += ret; buf += ret;