From 823a7900bd5c6a14857928102fbad8ec83f97568 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sun, 11 Apr 2004 04:51:55 +0000 Subject: do while(wait3) for sighandler git-svn-id: https://svn.musicpd.org/mpd/trunk@680 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/sig_handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3