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 "chand priyankara (JIRA)" <lo...@logging.apache.org> on 2014/12/23 11:48:13 UTC

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

    [ https://issues.apache.org/jira/browse/LOGCXX-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14256846#comment-14256846 ] 

chand priyankara commented on LOGCXX-448:
-----------------------------------------

I think this requires apr build with APR_HAS_THREADS​ flag on...
is there any specific configurations or is it only in the provided environment?

> 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)