]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug reported by jesper@schmitz.computer where bat hangs on FreeBSD
authorKern Sibbald <kern@sibbald.com>
Mon, 23 Oct 2017 15:11:51 +0000 (17:11 +0200)
committerKern Sibbald <kern@sibbald.com>
Mon, 23 Oct 2017 15:11:51 +0000 (17:11 +0200)
bacula/src/qt-console/bcomm/dircomm.cpp

index d9e22a0e735d7ff2dfee72204bb6a7a4a3552ee0..ccbf788a1d9bde63488b9b3e3501fbc295c9a627 100644 (file)
@@ -329,9 +329,10 @@ int DirComm::read()
       return -1;
    }
    while (m_sock) {
+      /* Poll DIR every 50 milliseconds */
       for (;;) {
          if (!m_sock) break;
-         stat = m_sock->wait_data_intr(0, 50000);
+         stat = m_sock->wait_data_intr(0, 50); /* wait 50 milliseconds */
          if (stat > 0) {
             break;
          }