]> granicus.if.org Git - pdns/commitdiff
move sync_with_stdio call from bindbackend to main() to avoid potential threading... auth-3.2-rc1
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 12 Nov 2012 08:56:26 +0000 (08:56 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 12 Nov 2012 08:56:26 +0000 (08:56 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2882 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/backends/bind/bindbackend2.cc
pdns/receiver.cc

index c9369ae35e8b60d14b9ff4cc582bfe3896e282e7..3468c0abf1d584b52021de16ef5580d4322da9fc 100644 (file)
@@ -526,9 +526,6 @@ string Bind2Backend::DLListRejectsHandler(const vector<string>&parts, Utility::p
 
 Bind2Backend::Bind2Backend(const string &suffix, bool loadZones)
 {
-#if __GNUC__ >= 3
-    std::ios_base::sync_with_stdio(false);
-#endif
   d_logprefix="[bind"+suffix+"backend]";
   setArgPrefix("bind"+suffix);
   Lock l(&s_startup_lock);
index d66a633b9a8b9d7726d2534c9fa833bb51608656..c09f4a5110b72c890ef2ada16c0087cd88772c37 100644 (file)
@@ -409,6 +409,9 @@ int main(int argc, char **argv)
   signal(SIGILL,tbhandler);
 #endif
 
+#if __GNUC__ >= 3
+  std::ios_base::sync_with_stdio(false);
+#endif
 
   L.toConsole(Logger::Warning);
   try {