|
I probably should have said that I'm using the following options in m
config-file - setuid - setgid Which might explain the problem I saw before my hack. No problems have been seen after my modification. I've attached a patch-file which contains the changes as I made them. I hope it comes through to the list. Regards, Ton Ton van Rosmalen schreef: Hi again, Ton van Rosmalen schreef:I just downgraded the supermaster back to 2.9.21 and pdns_control functions as it should. It connects to the control-socket send the notify and exits. |
Index: dynlistener.cc
===================================================================
--- dynlistener.cc (revision 1294)
+++ dynlistener.cc (working copy)
@@ -74,8 +74,6 @@
L<<Logger::Critical<<"Binding to dynlistener: "<<strerror(errno)<<endl;
exit(1);
}
-
- listen(d_s,10);
}
void DynListener::listenOnUnixDomain(const string& fname)
@@ -100,6 +98,7 @@
L<<Logger::Error<<"Unable to change group access mode of controlsocket:
"<<strerror(errno)<<endl;
}
+ listen(d_s,10);
L<<Logger::Warning<<"Listening on controlsocket in '"<<fname<<"'"<<endl;
d_nonlocal=true;
@@ -108,6 +107,7 @@
void DynListener::listenOnTCP(const ComboAddress& local)
{
createSocketAndBind(AF_INET, (struct sockaddr*)& local, local.getSocklen());
+ listen(d_s,10);
d_socketaddress=local;
L<<Logger::Warning<<"Listening on controlsocket on
'"<<local.toStringWithPort()<<"'"<<endl;
d_nonlocal=true;
_______________________________________________ Pdns-users mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-users
