Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Added a request limiter to ashd-wsgi.
[ashd.git]
/
lib
/
req.c
diff --git
a/lib/req.c
b/lib/req.c
index
64944bf
..
a3e7273
100644
(file)
--- a/
lib/req.c
+++ b/
lib/req.c
@@
-23,6
+23,7
@@
#include <errno.h>
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <stdio.h>
+#include <fcntl.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@
-254,6
+255,7
@@
int recvreq(int sock, struct hthead **reqp)
if((fd = recvfd(sock, &buf.b, &buf.d)) < 0) {
return(-1);
}
if((fd = recvfd(sock, &buf.b, &buf.d)) < 0) {
return(-1);
}
+ fcntl(fd, F_SETFD, FD_CLOEXEC);
buf.s = buf.d;
p = buf.b;
l = buf.d;
buf.s = buf.d;
p = buf.b;
l = buf.d;