summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/agent/ManagementAgentImpl.cpp3
1 files changed, 2 insertions, 1 deletions
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();
}