X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fmultifscgi.c;h=a865ec7fde1a48d877d1a4d85aa3f7bee906f98a;hb=595adb9922885c2a05bc6917ee8f8f02f496e618;hp=6cc232fda100a879456ee2cd7abdf9a8b4587866;hpb=121587a56e50fd4cce884d9e61e8796436b150a4;p=ashd.git 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;