X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Freq.c;h=a3e727390948601f8300e63cda1e7a20c7e4e346;hp=64944bf56b1c93a949526615faf01f4c14047144;hb=470938bdc9149ae9c7befd0cd983f46fcc056192;hpb=0c345c82fe0465b7e92076b90e3132ae3b6eba98 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;