From a4da80fc3ca81660527e053828de3a0b49df2a2b Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 6 Jul 2012 12:02:44 +0000 Subject: [PATCH] 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 --- pdns/signingpipe.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: "<