From 6ee1cb5740e7490151db7dcec7e20ceaf8a2fe1f Mon Sep 17 00:00:00 2001 From: Rémi Denis-Courmont Date: Wed, 20 Aug 2014 23:06:07 +0300 Subject: libavformat: use MSG_NOSIGNAL when applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the remote end of a connection oriented socket hangs up, generating an EPIPE error is preferable over an unhandled SIGPIPE signal. Signed-off-by: Martin Storsjö --- libavformat/network.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/network.h') diff --git a/libavformat/network.h b/libavformat/network.h index 9d8c92fb83..09cee58a5c 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -98,6 +98,10 @@ struct sockaddr_storage { }; #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */ +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif + #if !HAVE_STRUCT_ADDRINFO struct addrinfo { int ai_flags; -- cgit v1.2.3