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 WSGI wrapper to handle empty responses.
[ashd.git]
/
src
/
dirplex
/
dirplex.c
diff --git
a/src/dirplex/dirplex.c
b/src/dirplex/dirplex.c
index
f8ac25a
..
31920e6
100644
(file)
--- a/
src/dirplex/dirplex.c
+++ b/
src/dirplex/dirplex.c
@@
-296,6
+296,10
@@
static void serve(struct hthead *req, int fd)
simpleerror(fd, 404, "Not Found", "The requested URL has no corresponding resource.");
}
simpleerror(fd, 404, "Not Found", "The requested URL has no corresponding resource.");
}
+static void sighandler(int sig)
+{
+}
+
static void usage(FILE *out)
{
fprintf(out, "usage: dirplex [-hN] [-c CONFIG] DIR\n");
static void usage(FILE *out)
{
fprintf(out, "usage: dirplex [-hN] [-c CONFIG] DIR\n");
@@
-356,6
+360,7
@@
int main(int argc, char **argv)
exit(1);
}
signal(SIGCHLD, SIG_IGN);
exit(1);
}
signal(SIGCHLD, SIG_IGN);
+ signal(SIGPIPE, sighandler);
while(1) {
if((fd = recvreq(0, &req)) < 0) {
if(errno != 0)
while(1) {
if((fd = recvreq(0, &req)) < 0) {
if(errno != 0)