Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/SoapyRPCSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ int SoapyRPCSocket::multicastJoin(const std::string &group, const bool loop, con

int SoapyRPCSocket::send(const void *buf, size_t len, int flags)
{
int ret = ::send(_sock, (const char *)buf, int(len), flags);
int ret = ::send(_sock, (const char *)buf, int(len), flags | MSG_NOSIGNAL);
if (ret == -1) this->reportError("send()");
return ret;
}
Expand Down
7 changes: 7 additions & 0 deletions common/SoapySocketDefs.in.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@ typedef int socklen_t;
#if !defined(IPV6_DROP_MEMBERSHIP) && defined(IPV6_LEAVE_GROUP)
#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
#endif

/***********************************************************************
* socket flag definitions
**********************************************************************/
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif