X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.c;h=a3e727390948601f8300e63cda1e7a20c7e4e346;hb=4ab547c31eed8bbe9538587850a1b90d4138d609;hp=64944bf56b1c93a949526615faf01f4c14047144;hpb=608f4ac7a840277f9754d8fe0410a31727057d3f;p=ashd.git diff --git a/lib/req.c b/lib/req.c index 64944bf..a3e7273 100644 --- a/lib/req.c +++ b/lib/req.c @@ -23,6 +23,7 @@ #include #include #include +#include #ifdef HAVE_CONFIG_H #include @@ -254,6 +255,7 @@ int recvreq(int sock, struct hthead **reqp) 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;