From: Kern Sibbald Date: Mon, 23 Oct 2017 15:11:51 +0000 (+0200) Subject: Fix bug reported by jesper@schmitz.computer where bat hangs on FreeBSD X-Git-Tag: Release-9.0.5~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d531516b7783ab909edb498c03d9a8f6b6cb171f;p=bacula%2Fbacula Fix bug reported by jesper@schmitz.computer where bat hangs on FreeBSD --- diff --git a/bacula/src/qt-console/bcomm/dircomm.cpp b/bacula/src/qt-console/bcomm/dircomm.cpp index d9e22a0e73..ccbf788a1d 100644 --- a/bacula/src/qt-console/bcomm/dircomm.cpp +++ b/bacula/src/qt-console/bcomm/dircomm.cpp @@ -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; }