From a849136820badac142c299abfc8cfe65fbd64896 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 8 Mar 2005 02:51:15 +0000 Subject: undo fix for killall not preserving the current format properly, it causes problems for alsa and other things that spawn extra process w/o us knowing git-svn-id: https://svn.musicpd.org/mpd/trunk@3039 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/decode.c') 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); -- cgit v1.2.3