From: bert hubert Date: Tue, 21 Oct 2014 15:07:29 +0000 (+0200) Subject: second attempt to prevent us from launching the distributor thread when attempting... X-Git-Tag: rec-3.7.0-rc1~199^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61d74169c4621338fb873787002ffa2d0d731747;p=thirdparty%2Fpdns.git second attempt to prevent us from launching the distributor thread when attempting to operate unthreaded --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 1c43143e1f..a87c6ee9c9 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2198,6 +2198,9 @@ int main(int argc, char **argv) ::arg().set("delegation-only")=toLower(::arg()["delegation-only"]); + if(::arg().asNum("threads")==1) + ::arg().set("pdns-distributes-queries")="no"; + if(::arg().mustDo("help")) { cout<<"syntax:"<