Commit 823a7900 authored by Warren Dukes's avatar Warren Dukes

do while(wait3) for sighandler

git-svn-id: https://svn.musicpd.org/mpd/trunk@680 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 7091235a
......@@ -47,8 +47,8 @@ void hupSigHandler(int signal) {
void chldSigHandler(int signal) {
int status;
int pid = wait3(&status,WNOHANG,NULL);
if(pid>0) {
int pid;
while((pid = wait3(&status,WNOHANG,NULL)) > 0) {
player_sigChldHandler(pid,status);
directory_sigChldHandler(pid,status);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment