Commit eae1574f authored by Kishen Maloor's avatar Kishen Maloor

Linux/tcpadapter: suppress SIGPIPE

Change-Id: Ieee27d4cef840c7aad86d5b1da5e56f5cab219c0
Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent f8549457
......@@ -593,9 +593,14 @@ oc_tcp_send_buffer(ip_context_t *dev, oc_message_t *message,
}
}
send_sock = get_session_socket(&message->endpoint);
if (send_sock < 0) {
goto oc_tcp_send_buffer_done;
}
do {
ssize_t send_len = send(send_sock, message->data + bytes_sent,
message->length - bytes_sent, 0);
message->length - bytes_sent, MSG_NOSIGNAL);
if (send_len < 0) {
OC_WRN("send() returned errno %d", errno);
goto oc_tcp_send_buffer_done;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment