aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);
}