From 8a1194889b22e105a372a62d8582cd230f59897a Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 16 Jun 2010 17:33:17 +0000 Subject: [PATCH] core: Try to exit cleanly on SIGPIPE SIGPIPE is not really a crash, try to exit cleanly in case we receive one. Particularly in the network code it would be better to ignore it, but some window managers use it to indicate a close request. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31432 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mplayer.c b/mplayer.c index 15fef2fe1b..067971f2dd 100644 --- a/mplayer.c +++ b/mplayer.c @@ -892,6 +892,7 @@ static void exit_sighandler(int x){ if(sig_count<=1) switch(x){ case SIGINT: + case SIGPIPE: case SIGQUIT: case SIGTERM: case SIGKILL: