From 41d25ebcc8bc8601bd66f5435c75fdff25cadc17 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 27 Jun 2010 15:04:13 +0000 Subject: stream: Use MSG_NOSIGNAL flag if available for send(). This avoids MPlayer quitting due to SIGPIPE at least for these cases. Ignoring SIGPIPE in general would break window-closing with some window-managers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31566 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/network.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stream/network.h') diff --git a/stream/network.h b/stream/network.h index b842b1ed24..897f697304 100644 --- a/stream/network.h +++ b/stream/network.h @@ -39,6 +39,12 @@ #include "url.h" #include "http.h" +#ifdef MSG_NOSIGNAL +#define DEFAULT_SEND_FLAGS MSG_NOSIGNAL +#else +#define DEFAULT_SEND_FLAGS 0 +#endif + #if !HAVE_CLOSESOCKET #define closesocket close #endif -- cgit v1.2.3