mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
No signals on sockets.
This commit is contained in:
parent
f47b7a1cdf
commit
5919f5f5e8
@ -19,6 +19,7 @@ namespace tracy
|
||||
{
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define MSG_NOSIGNAL 0
|
||||
struct __wsinit
|
||||
{
|
||||
__wsinit()
|
||||
@ -113,7 +114,7 @@ int Socket::Send( const void* _buf, int len )
|
||||
auto start = buf;
|
||||
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;
|
||||
len -= ret;
|
||||
buf += ret;
|
||||
|
Loading…
Reference in New Issue
Block a user