[MPlayer-dev-eng] [PATCH] disable SIGPIPE for network send()

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jun 17 22:00:28 CEST 2010


On Thu, Jun 17, 2010 at 09:45:18AM +0200, Attila Kinali wrote:
> On Wed, 16 Jun 2010 20:13:25 +0200
> Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
> 
> > MPlayer really shouldn't quit just because some server closed the
> > connection.
> > Attached patch adds MSG_NOSIGNAL to the send flags if available.
> > SO_NOSIGPIPE would have been nicer IMO, but that's not available
> > at least on debian...
> > Note that this does not fully fix the problem, I think libavformat
> > and live555 still cause SIGPIPEs.
> 
> How about catching SIGPIPE instead and handling it accordingly?

If you tell me how to figure out whether the SIGPIPE comes
from a stupid window manager that wants us to close or some
networking code...
And we already do catch SIGPIPE, and quit MPlayer on it.



More information about the MPlayer-dev-eng mailing list