Mercurial > mplayer.hg
comparison mplayer.c @ 31366:0bf908d29807
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.
author | reimar |
---|---|
date | Wed, 16 Jun 2010 17:33:17 +0000 |
parents | 14bbe725b50e |
children | f73663d84979 |
comparison
equal
deleted
inserted
replaced
31365:1fe3bf45f4e6 | 31366:0bf908d29807 |
---|---|
845 ); | 845 ); |
846 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SIGNAL=%d\n", x); | 846 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SIGNAL=%d\n", x); |
847 if(sig_count<=1) | 847 if(sig_count<=1) |
848 switch(x){ | 848 switch(x){ |
849 case SIGINT: | 849 case SIGINT: |
850 case SIGPIPE: | |
850 case SIGQUIT: | 851 case SIGQUIT: |
851 case SIGTERM: | 852 case SIGTERM: |
852 case SIGKILL: | 853 case SIGKILL: |
853 async_quit_request = 1; | 854 async_quit_request = 1; |
854 return; // killed from keyboard (^C) or killed [-9] | 855 return; // killed from keyboard (^C) or killed [-9] |