diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-17 06:44:58 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-17 06:44:58 +0200 |
commit | 065c92d1e9e0574452e92f07b797301c987d5ab4 (patch) | |
tree | fa75e9ffe4bfec2cf54f6b1b5ea76b3f048bdd0b /src | |
parent | ad311a62d4020e3fd7a7048e9d25bd5735206c81 (diff) | |
download | dabmod-065c92d1e9e0574452e92f07b797301c987d5ab4.tar.gz dabmod-065c92d1e9e0574452e92f07b797301c987d5ab4.tar.bz2 dabmod-065c92d1e9e0574452e92f07b797301c987d5ab4.zip |
Avoid crash due to SIGPIPE in OutputUHDFeedback server
Diffstat (limited to 'src')
-rw-r--r-- | src/Socket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Socket.h b/src/Socket.h index 1d9c252..f6a023d 100644 --- a/src/Socket.h +++ b/src/Socket.h @@ -137,7 +137,8 @@ class TCPSocket { { uint8_t *buf = (uint8_t*)buffer; while (buflen > 0) { - ssize_t sent = send(m_sock, buf, buflen, 0); + // Set MSG_NOSIGNAL to avoid that this thread gets a SIGPIPE + ssize_t sent = send(m_sock, buf, buflen, MSG_NOSIGNAL); if (sent < 0) { return -1; } |