summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-16 17:33:17 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:10:42 +0200
commit8a1194889b22e105a372a62d8582cd230f59897a (patch)
treebf49cf029900b80b6ce5cf1397e1e6c090333048 /mplayer.c
parent8db622ceafddaa8acb452bc16b65a35a5bd0d75d (diff)
downloadmpv-8a1194889b22e105a372a62d8582cd230f59897a.tar.bz2
mpv-8a1194889b22e105a372a62d8582cd230f59897a.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c1
1 files changed, 1 insertions, 0 deletions
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: