Added an error message for crashing request handlers in dirplex.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 24 Aug 2010 12:03:18 +0000 (14:03 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 24 Aug 2010 12:03:18 +0000 (14:03 +0200)
src/dirplex.c

index 063fbb4..d47a23e 100644 (file)
@@ -441,6 +441,7 @@ static void passreq(struct child *ch, struct hthead *req, int fd)
        flog(LOG_ERR, "could not pass on request to child %s: %s", ch->name, strerror(errno));
        close(ch->fd);
        ch->fd = -1;
+       simpleerror(fd, 500, "Server Error", "The request handler crashed.");
     }
 }