mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
No signals on sockets.
This commit is contained in:
parent
f47b7a1cdf
commit
5919f5f5e8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user