Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d74fc0
)
lib: Don't close children on mere EAGAINs, but fail and wait for them.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 15 Jan 2013 07:22:26 +0000
(08:22 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 15 Jan 2013 07:22:26 +0000
(08:22 +0100)
lib/cf.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/cf.c
b/lib/cf.c
index
96181ee
..
86658f8
100644
(file)
--- a/
lib/cf.c
+++ b/
lib/cf.c
@@
-319,8
+319,10
@@
static int stdhandle(struct child *ch, struct hthead *req, int fd, void (*chinit
return(0);
}
flog(LOG_ERR, "could not pass on request to child %s: %s", ch->name, strerror(errno));
- close(i->fd);
- i->fd = -1;
+ if(errno != EAGAIN) {
+ close(i->fd);
+ i->fd = -1;
+ }
return(-1);
}
} else if(i->type == CH_FORK) {