aboutsummaryrefslogtreecommitdiffstats
path: root/src/sig_handlers.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-11 04:51:55 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-11 04:51:55 +0000
commit823a7900bd5c6a14857928102fbad8ec83f97568 (patch)
tree28ba563617ed99efcfc8354763a388fb0588c85f /src/sig_handlers.c
parent7091235a683bfcaea32e95a81b86842de7657aa7 (diff)
downloadmpd-823a7900bd5c6a14857928102fbad8ec83f97568.tar.gz
mpd-823a7900bd5c6a14857928102fbad8ec83f97568.tar.xz
mpd-823a7900bd5c6a14857928102fbad8ec83f97568.zip
do while(wait3) for sighandler
git-svn-id: https://svn.musicpd.org/mpd/trunk@680 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/sig_handlers.c')
-rw-r--r--src/sig_handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c
index e9d91a645..ed6fb4631 100644
--- a/src/sig_handlers.c
+++ b/src/sig_handlers.c
@@ -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);
}