diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-03-19 12:28:47 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-03-19 12:28:47 +0000 |
commit | 9193766c06e06fbf36ce0fc593be4c0687d47ac8 (patch) | |
tree | d756d9713e601be6c4272da25dd9aa7b54c94efc /src/decode.c | |
parent | d392b7e48b2b589a24f9a790fbb8e14dbac36993 (diff) | |
download | mpd-9193766c06e06fbf36ce0fc593be4c0687d47ac8.tar.gz mpd-9193766c06e06fbf36ce0fc593be4c0687d47ac8.tar.xz mpd-9193766c06e06fbf36ce0fc593be4c0687d47ac8.zip |
fix some signal handling
git-svn-id: https://svn.musicpd.org/mpd/trunk@3101 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/decode.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/decode.c b/src/decode.c index 0ffa9f87e..c91b5c92a 100644 --- a/src/decode.c +++ b/src/decode.c @@ -44,9 +44,7 @@ void decodeSigHandler(int sig, siginfo_t * si, void * v) { int status; if(decode_pid==wait3(&status,WNOHANG,NULL)) { if(WIFSIGNALED(status)) { - if(WTERMSIG(status)!=SIGTERM && - WTERMSIG(status)!=SIGINT) - { + if(WTERMSIG(status)!=SIGTERM) { ERROR("decode process died from " "signal: %i\n", WTERMSIG(status)); @@ -65,12 +63,6 @@ void decodeSigHandler(int sig, siginfo_t * si, void * v) { else DEBUG("decoder (or child) got SIGTERM\n"); exit(EXIT_SUCCESS); } - else if(sig==SIGINT) { - if(decode_pid > 0) { - DEBUG("player (or child) got SIGINT\n"); - } - else DEBUG("decoder (or child) got SIGINT\n"); - } } void stopDecode(DecoderControl * dc) { |