diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-16 17:33:17 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:10:42 +0200 |
commit | 8a1194889b22e105a372a62d8582cd230f59897a (patch) | |
tree | bf49cf029900b80b6ce5cf1397e1e6c090333048 /mplayer.c | |
parent | 8db622ceafddaa8acb452bc16b65a35a5bd0d75d (diff) | |
download | mpv-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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: |