From d531516b7783ab909edb498c03d9a8f6b6cb171f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 23 Oct 2017 17:11:51 +0200 Subject: [PATCH] Fix bug reported by jesper@schmitz.computer where bat hangs on FreeBSD --- bacula/src/qt-console/bcomm/dircomm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5