You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2010/02/02 18:17:21 UTC

svn commit: r905713 - /qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp

Author: tross
Date: Tue Feb  2 17:17:15 2010
New Revision: 905713

URL: http://svn.apache.org/viewvc?rev=905713&view=rev
Log:
QPID-1982 - Don't allocate more than one instance of a PipeHandle.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp?rev=905713&r1=905712&r2=905713&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp Tue Feb  2 17:17:15 2010
@@ -249,7 +249,8 @@
 int ManagementAgentImpl::getSignalFd()
 {
     if (extThread) {
-        pipeHandle = new PipeHandle(true);
+        if (pipeHandle == 0)
+            pipeHandle = new PipeHandle(true);
         return pipeHandle->getReadHandle();
     }
 



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