diff options
author | Ted Ross <tross@apache.org> | 2010-02-02 17:17:15 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2010-02-02 17:17:15 +0000 |
commit | e9969dfec63c13533d2609c0cd0fa24a75c4c03f (patch) | |
tree | f88657d6f7c5a7351f7bffc6a9e16668fead0e84 /cpp | |
parent | a77d4284486302237125103a727dc4ff9998a1e1 (diff) | |
download | qpid-python-e9969dfec63c13533d2609c0cd0fa24a75c4c03f.tar.gz |
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
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/agent/ManagementAgentImpl.cpp | 3 |
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(); } |