Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-448

config-thread hangs foreever in sleep if a very short lookup intervall was configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 0.10.0, 0.11.0
    • None
    • Configurator
    • None
    • FreeBSD-8, gcc 4.2.1

    Description

      If one configure a very short intervall for watching the l4x configuration file application hangs forever on exit. The short lookup intervall is only to reproduce this error on faster machines.
      We encountered the error on our slow single cpu target machines.

      simple demo prog:

      #include <log4cxx/xml/domconfigurator.h>

      int main(int argc, char* argv[])
      {
      std::string configFile = "test.l4x";
      log4cxx::xml::DOMConfigurator::configureAndWatch(configFile, 1);

      sleep(2);

      return 0;
      }

      hangs forever in Thread::sleep

      Attachments

        Activity

          People

            Unassigned Unassigned
            barosz Ben-Alexander Altendorf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: