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:
		| @@ -52,8 +52,11 @@ void decodeSigHandler(int sig, siginfo_t * si, void * v) { | |||||||
| 			*decode_pid = 0; | 			*decode_pid = 0; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	else if(sig==SIGTERM && si->si_pid==getppid()) { | 	/* this is causing problems for alsa and other things that generate | ||||||
| 		DEBUG("player/decoder got SIGTERM from parent process\n"); | 	 * 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) { | 		if(decode_pid) { | ||||||
| 			int pid = *decode_pid; | 			int pid = *decode_pid; | ||||||
| 			if(pid>0) kill(pid,SIGTERM); | 			if(pid>0) kill(pid,SIGTERM); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Warren Dukes
					Warren Dukes