Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
[ashd.git]
/
src
/
multifscgi.c
diff --git
a/src/multifscgi.c
b/src/multifscgi.c
index
6cc232f
..
a865ec7
100644
(file)
--- 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) {
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;
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) {
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;
for(i = 0; i < nchildren; i++) {
if(children[i] == ch)
children[i] = 0;