diff --git a/libs/esl/ivrd.c b/libs/esl/ivrd.c index 349900bfd2..be4cdc8e19 100644 --- a/libs/esl/ivrd.c +++ b/libs/esl/ivrd.c @@ -41,8 +41,12 @@ static void handle_SIGCHLD(int sig) { int status = 0; + int pid = 0; + + do { + pid = waitpid(-1, &status, WNOHANG); + } while (pid > 0); - wait(&status); return; }