diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-27 15:04:13 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:11:43 +0200 |
commit | 41d25ebcc8bc8601bd66f5435c75fdff25cadc17 (patch) | |
tree | 6cf36aab161902d1b1cd508e89e0acfaf1592c18 /stream/stream_netstream.h | |
parent | e55135212138800f0107247c1f3ded81366cd123 (diff) | |
download | mpv-41d25ebcc8bc8601bd66f5435c75fdff25cadc17.tar.bz2 mpv-41d25ebcc8bc8601bd66f5435c75fdff25cadc17.tar.xz |
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
Diffstat (limited to 'stream/stream_netstream.h')
-rw-r--r-- | stream/stream_netstream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_netstream.h b/stream/stream_netstream.h index 4d3e30e849..3843ee938d 100644 --- a/stream/stream_netstream.h +++ b/stream/stream_netstream.h @@ -124,7 +124,7 @@ static mp_net_stream_packet_t* read_packet(int fd) { static int net_write(int fd, char* buf, int len) { int w; while(len) { - w = send(fd,buf,len,0); + w = send(fd,buf,len,DEFAULT_SEND_FLAGS); if(w <= 0) { if(errno == EINTR) continue; if(w < 0) |