From: Bert Hubert Date: Mon, 14 Feb 2011 12:50:05 +0000 (+0000) Subject: make sure we don't trip over disconnects on the controlsocket X-Git-Tag: auth-3.0~233 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e67beab1d181120134aeaaf095ac6de58ca136b4;p=thirdparty%2Fpdns.git make sure we don't trip over disconnects on the controlsocket git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2014 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index 7d28cdfb1e..e36dfa7d6a 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -187,7 +187,8 @@ string DynListener::getLine() continue; } - if(!d_tcp && d_tcprange.match(&remote)) { + if(d_tcp && !d_tcprange.match(&remote)) { // ???? + L< parameters; + signal(SIGPIPE,SIG_IGN); for(int n=0;;++n) { // cerr<<"Reading new line, "<