]> granicus.if.org Git - pdns/commitdiff
we don't need set close on exec in pdns_recursor since it won't (can't) exec anything
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 24 Feb 2016 10:54:22 +0000 (11:54 +0100)
committerbert hubert <bert.hubert@powerdns.com>
Wed, 24 Feb 2016 13:36:21 +0000 (14:36 +0100)
pdns/pdns_recursor.cc

index 43eacc87506ea8e4eb1143d46bebf87995d29b69..960afb6929b284b249f36a2005cc5f1b1710e27e 100644 (file)
@@ -419,7 +419,7 @@ public:
     if(ret<0)
       throw PDNSException("Making a socket for resolver (family = "+std::to_string(family)+"): "+stringerror());
 
-    setCloseOnExec(ret);
+    //    setCloseOnExec(ret); // we're not going to exec
 
     int tries=10;
     ComboAddress sin;