Skip to content
Snippets Groups Projects
Commit 2cafd677 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Disable SIGPIPE

parent bc82d880
No related branches found
No related tags found
No related merge requests found
......@@ -130,5 +130,8 @@ bool OPCClient::connectSocket()
int flag = 1;
setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char*) &flag, sizeof flag);
flag = 1;
setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, (char*) &flag, sizeof flag);
return true;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment