Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Updated documentation.
[ashd.git]
/
lib
/
req.c
diff --git
a/lib/req.c
b/lib/req.c
index
662df0f
..
ed5aeba
100644
(file)
--- a/
lib/req.c
+++ b/
lib/req.c
@@
-290,7
+290,7
@@
int writeresp(FILE *out, struct hthead *resp)
return(0);
}
return(0);
}
-int sendreq
(int sock, struct hthead *req, int fd
)
+int sendreq
2(int sock, struct hthead *req, int fd, int flags
)
{
int ret, i;
struct charbuf buf;
{
int ret, i;
struct charbuf buf;
@@
-305,7
+305,7
@@
int sendreq(int sock, struct hthead *req, int fd)
bufcatstr2(buf, req->headers[i][1]);
}
bufcatstr2(buf, "");
bufcatstr2(buf, req->headers[i][1]);
}
bufcatstr2(buf, "");
- ret = sendfd
(sock, fd, buf.b, buf.d
);
+ ret = sendfd
2(sock, fd, buf.b, buf.d, flags
);
buffree(buf);
if(ret < 0)
return(-1);
buffree(buf);
if(ret < 0)
return(-1);
@@
-313,6
+313,11
@@
int sendreq(int sock, struct hthead *req, int fd)
return(0);
}
return(0);
}
+int sendreq(int sock, struct hthead *req, int fd)
+{
+ return(sendreq2(sock, req, fd, MSG_NOSIGNAL));
+}
+
int recvreq(int sock, struct hthead **reqp)
{
int fd;
int recvreq(int sock, struct hthead **reqp)
{
int fd;