X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.c;h=ed5aebad5aa1ed384d9efc42a00db17cdbebf488;hb=bdbb6d12f5f73262685f871685cfd32bba9bdeb4;hp=662df0f6cddd63ebb0ecfc01fe9e641a379961bb;hpb=056f947352274dd1f6ec51b03c423c12e3828623;p=ashd.git diff --git a/lib/req.c b/lib/req.c index 662df0f..ed5aeba 100644 --- a/lib/req.c +++ b/lib/req.c @@ -290,7 +290,7 @@ int writeresp(FILE *out, struct hthead *resp) return(0); } -int sendreq(int sock, struct hthead *req, int fd) +int sendreq2(int sock, struct hthead *req, int fd, int flags) { 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, ""); - ret = sendfd(sock, fd, buf.b, buf.d); + ret = sendfd2(sock, fd, buf.b, buf.d, flags); buffree(buf); if(ret < 0) return(-1); @@ -313,6 +313,11 @@ int sendreq(int sock, struct hthead *req, int fd) 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;