Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Fixed a url quoting bug in ashd-wsgi.
[ashd.git]
/
src
/
userplex.c
diff --git
a/src/userplex.c
b/src/userplex.c
index
d6c978c
..
3a2da87
100644
(file)
--- a/
src/userplex.c
+++ b/
src/userplex.c
@@
-145,7
+145,7
@@
static void serve2(struct user *usr, struct hthead *req, int fd)
if(usr->fd < 0)
usr->fd = forkchild(usr->name);
if(sendreq(usr->fd, req, fd)) {
if(usr->fd < 0)
usr->fd = forkchild(usr->name);
if(sendreq(usr->fd, req, fd)) {
- if(
errno == EPIPE
) {
+ if(
(errno == EPIPE) || (errno == ECONNRESET)
) {
/* Assume that the child has crashed and restart it. */
close(usr->fd);
usr->fd = forkchild(usr->name);
/* Assume that the child has crashed and restart it. */
close(usr->fd);
usr->fd = forkchild(usr->name);