libavformat: use MSG_NOSIGNAL when applicable
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 20 Aug 2014 20:06:07 +0000 (23:06 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 25 Aug 2014 07:49:14 +0000 (10:49 +0300)
commit6ee1cb5740e7490151db7dcec7e20ceaf8a2fe1f
treee6971b95e3a5073be0a3a27c2e7f4ba70daa3d3e
parentb263f8ffe7599d9cd27ec477a12700da8eb2790d
libavformat: use MSG_NOSIGNAL when applicable

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ö <martin@martin.st>
libavformat/network.h
libavformat/sctp.c
libavformat/tcp.c
libavformat/unix.c