X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fmultifscgi.c;h=a865ec7fde1a48d877d1a4d85aa3f7bee906f98a;hp=6cc232fda100a879456ee2cd7abdf9a8b4587866;hb=3d6044aba083ec8fa366bf85794a9ae62eab9858;hpb=18838a2eddc3ae7fdc8f3fefb8cd83c012328a5e diff --git a/src/multifscgi.c b/src/multifscgi.c index 6cc232f..a865ec7 100644 --- a/src/multifscgi.c +++ b/src/multifscgi.c @@ -66,6 +66,8 @@ static void manage(void) pselect(0, NULL, NULL, NULL, NULL, &ns); if(chdone) { while((ch = waitpid(-1, &st, WNOHANG)) > 0) { + if(WCOREDUMP(st)) + fprintf(stderr, "multifscgi: child %i (%s) dumped core\n", ch, chspec[0]); for(i = 0; i < nchildren; i++) { if(children[i] == ch) children[i] = 0; @@ -108,6 +110,8 @@ static void killall(void) pselect(0, NULL, NULL, NULL, &to, &ns); if(chdone) { while((ch = waitpid(-1, &st, WNOHANG)) > 0) { + if(WCOREDUMP(st)) + fprintf(stderr, "multifscgi: child %i (%s) dumped core\n", ch, chspec[0]); for(i = 0; i < nchildren; i++) { if(children[i] == ch) children[i] = 0;