X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fpatplex.c;h=83944062966c65a25f84e6abb8b2b5437ea5f378;hb=8ad7573acd834e02bffbd7adc3814d4ca5645677;hp=d296e04f8c407f8ded35e849035a8d5ae3b95e69;hpb=6174a0392d661ea7cba3cd90ff35ced3b518ca87;p=ashd.git diff --git a/src/patplex.c b/src/patplex.c index d296e04..8394406 100644 --- a/src/patplex.c +++ b/src/patplex.c @@ -438,7 +438,7 @@ static void serve(struct hthead *req, int fd) return; } - if(childhandle(ch, req, fd)) + if(childhandle(ch, req, fd, NULL, NULL)) simpleerror(fd, 500, "Server Error", "The request handler crashed."); } @@ -513,6 +513,7 @@ int main(int argc, char **argv) } signal(SIGCHLD, SIG_IGN); signal(SIGHUP, sighandler); + signal(SIGPIPE, sighandler); while(1) { if(reload) { reloadconf(argv[optind]);