X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fpatplex.c;h=13fa062e4aaaeb2486082fe69cd0d874340871b3;hb=5f0c1cd631b9abcca90afe15cf129babba86f7f1;hp=55063866e80b652ab6fc65dff905d0aff3df0122;hpb=8cc893f5a55ad27a6971524b41e99589576eade5;p=ashd.git diff --git a/src/patplex.c b/src/patplex.c index 5506386..13fa062 100644 --- a/src/patplex.c +++ b/src/patplex.c @@ -491,10 +491,12 @@ static void reloadconf(char *nm) static void chldhandler(int sig) { pid_t pid; + int st; - do { - pid = waitpid(-1, NULL, WNOHANG); - } while(pid > 0); + while((pid = waitpid(-1, &st, WNOHANG)) > 0) { + if(WCOREDUMP(st)) + flog(LOG_WARNING, "child process %i dumped core", pid); + } } static void sighandler(int sig)