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
This commit is contained in:
Warren Dukes 2005-03-08 02:51:15 +00:00
parent b5e55a648f
commit a849136820
1 changed files with 5 additions and 2 deletions

View File

@ -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);