diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/decode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c index 32deb075a..b0e08dc34 100644 --- a/src/decode.c +++ b/src/decode.c @@ -52,8 +52,11 @@ void decodeSigHandler(int sig, siginfo_t * si, void * v) { *decode_pid = 0; } } - else if(sig==SIGTERM && si->si_pid==getppid()) { - DEBUG("player/decoder got SIGTERM from parent process\n"); + /* this is causing problems for alsa and other things that generate + * extra processes. it causes them to not die */ + /*else if(sig==SIGTERM && si->si_pid==getppid()) { + DEBUG("player/decoder got SIGTERM from parent process\n");*/ + else if(sig==SIGTERM) { if(decode_pid) { int pid = *decode_pid; if(pid>0) kill(pid,SIGTERM); |