You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <qp...@incubator.apache.org> on 2009/05/12 23:59:45 UTC

[jira] Resolved: (QPID-1852) Logger::log isn't thread safe (by inspection)

     [ https://issues.apache.org/jira/browse/QPID-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher resolved QPID-1852.
-----------------------------------

    Resolution: Fixed

> Logger::log isn't thread safe (by inspection)
> ---------------------------------------------
>
>                 Key: QPID-1852
>                 URL: https://issues.apache.org/jira/browse/QPID-1852
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: M4
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> In source file cpp/src/qpid/log/Logger.h Logger::log() uses the function localtime which is not thread saf
> localtime() needs to be replaced with localtime_r() for threadsafety.
> Incidentally sprintf() and most of the rest of the function can be replaced with strftime().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org