From e9969dfec63c13533d2609c0cd0fa24a75c4c03f Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 2 Feb 2010 17:17:15 +0000 Subject: QPID-1982 - Don't allocate more than one instance of a PipeHandle. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@905713 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/agent/ManagementAgentImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/cpp/src/qpid/agent/ManagementAgentImpl.cpp index 467f70510b..71899561a9 100644 --- a/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/cpp/src/qpid/agent/ManagementAgentImpl.cpp @@ -249,7 +249,8 @@ uint32_t ManagementAgentImpl::pollCallbacks(uint32_t callLimit) int ManagementAgentImpl::getSignalFd() { if (extThread) { - pipeHandle = new PipeHandle(true); + if (pipeHandle == 0) + pipeHandle = new PipeHandle(true); return pipeHandle->getReadHandle(); } -- cgit v1.2.1