[vlc-commits] tls: fix SIGPIPE with vlc_tls_DummyCreate()

Rémi Denis-Courmont git at videolan.org
Sat Dec 19 11:51:41 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec 19 12:30:50 2015 +0200| [8349fac7c1c0b7049e37c5ed808c505fb05e5474] | committer: Rémi Denis-Courmont

tls: fix SIGPIPE with vlc_tls_DummyCreate()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8349fac7c1c0b7049e37c5ed808c505fb05e5474
---

 src/network/tls.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network/tls.c b/src/network/tls.c
index 1c926ab..c119d33 100644
--- a/src/network/tls.c
+++ b/src/network/tls.c
@@ -319,7 +319,7 @@ static ssize_t vlc_tls_DummyReceive(vlc_tls_t *tls, void *buf, size_t len)
 
 static ssize_t vlc_tls_DummySend(vlc_tls_t *tls, const void *buf, size_t len)
 {
-    return send(tls->fd, buf, len, 0);
+    return send(tls->fd, buf, len, MSG_NOSIGNAL);
 }
 
 static void vlc_tls_DummyClose(vlc_tls_t *tls)



More information about the vlc-commits mailing list