]> granicus.if.org Git - pdns/commitdiff
freebsd might need '-1' for timeout instead of 'a negative value'
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 10 Feb 2011 20:09:52 +0000 (20:09 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 10 Feb 2011 20:09:52 +0000 (20:09 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2008 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/signingpipe.cc

index 4b5138be27d449a1493cebab120038c432bfaa3a..76bbce37ac2411ba6f57a6722d0f83e25fccfbcf 100644 (file)
@@ -133,7 +133,7 @@ pair<vector<int>, vector<int> > ChunkedSigningPipe::waitForRW(bool rd, bool wr,
     pfds.push_back(pfd);
   }
   
-  int res = poll(&pfds[0], pfds.size(), seconds * 1000); // negative = infinite
+  int res = poll(&pfds[0], pfds.size(), (seconds < 0) ? -1 : (seconds * 1000)); // -1 = infinite
   if(res < 0)
     unixDie("polling for activity from signers, "+lexical_cast<string>(d_sockets.size()));
   pair<vector<int>, vector<int> > vects;