Hi list.

I tried out the rather new bacula9 port on FreeBSD 11.1-RELEASE.
I could successfully use the bconsole utility, but the qt4-bat just hang at "initializing.."

The following patch fixes it..

--- src/qt-console/bcomm/dircomm.cpp.orig       2017-10-22 07:27:18 UTC
+++ src/qt-console/bcomm/dircomm.cpp
@@ -331,7 +331,7 @@ int DirComm::read()
    while (m_sock) {
       for (;;) {
          if (!m_sock) break;
-         stat = m_sock->wait_data_intr(0, 50000);
+         stat = m_sock->wait_data_intr(5, 0);
          if (stat > 0) {
             break;
          }
It seems specific to FreeBSD though.

Can anyone explain the difference between the two systems? And why the high value in the first place?
It gives tv.u_sec = 50.000.000, at lib/bsys.c:1184:
      tv.tv_usec = msec * 1000;
      perhaps that is a mistake?

Regards
Jesper Schmitz Mouridsen

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to