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
This commit is contained in:
reimar 2010-06-16 17:33:17 +00:00 committed by Uoti Urpala
parent 8db622ceaf
commit 8a1194889b
1 changed files with 1 additions and 0 deletions

View File

@ -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: