You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by "Ben-Alexander Altendorf (JIRA)" <lo...@logging.apache.org> on 2014/12/01 15:56:12 UTC

[jira] [Created] (LOGCXX-448) config-thread hangs foreever in sleep if a very short lookup intervall was configured

Ben-Alexander Altendorf created LOGCXX-448:
----------------------------------------------

             Summary: config-thread hangs foreever in sleep if a very short lookup intervall was configured
                 Key: LOGCXX-448
                 URL: https://issues.apache.org/jira/browse/LOGCXX-448
             Project: Log4cxx
          Issue Type: Bug
          Components: Configurator
    Affects Versions: 0.10.0, 0.11.0
         Environment: FreeBSD-8, gcc 4.2.1
            Reporter: Ben-Alexander Altendorf
            Priority: Minor


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




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)