From: Peter van Dijk Date: Fri, 6 Jul 2012 12:02:44 +0000 (+0000) Subject: fix issue if signer could not sign and died on us, leaving us with 100% busy CPU... X-Git-Tag: auth-3.2-rc1~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4da80fc3ca81660527e053828de3a0b49df2a2b;p=thirdparty%2Fpdns.git fix issue if signer could not sign and died on us, leaving us with 100% busy CPU in many cases (r2668) git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2670 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/signingpipe.cc b/pdns/signingpipe.cc index 68888002c9..384ac3bfb3 100644 --- a/pdns/signingpipe.cc +++ b/pdns/signingpipe.cc @@ -63,7 +63,7 @@ try return 0; } catch(std::exception& e) { - cerr<<"Signing thread died with error "<, vector > ChunkedSigningPipe::waitForRW(bool rd, bool wr, vector pfds; for(unsigned int n = 0; n < d_sockets.size(); ++n) { - if(d_eof.count(n)) + if(d_eof.count(d_sockets[n])) continue; struct pollfd pfd; memset(&pfd, 0, sizeof(pfd)); @@ -274,7 +274,7 @@ try } catch(std::exception& e) { - cerr<<"Signing thread died because of std::exception: "<