You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2008/02/12 17:35:46 UTC
svn commit: r620854 - /incubator/qpid/trunk/qpid/cpp/src/qpidd.cpp
Author: gsim
Date: Tue Feb 12 08:35:45 2008
New Revision: 620854
URL: http://svn.apache.org/viewvc?rev=620854&view=rev
Log:
Explicitly reset shared pointer; brokers destructor not called if started through -d otherwise it seems...
Modified:
incubator/qpid/trunk/qpid/cpp/src/qpidd.cpp
Modified: incubator/qpid/trunk/qpid/cpp/src/qpidd.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpidd.cpp?rev=620854&r1=620853&r2=620854&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpidd.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpidd.cpp Tue Feb 12 08:35:45 2008
@@ -122,7 +122,7 @@
void shutdownHandler(int /*signal*/){
// Note: do not call any async-signal unsafe functions here.
- // Do any extra shtudown actions in main() after broker->run()
+ // Do any extra shutdown actions in main() after broker->run()
brokerPtr->shutdown();
}
@@ -140,6 +140,7 @@
uint16_t port=brokerPtr->getPort();
ready(port); // Notify parent.
brokerPtr->run();
+ brokerPtr.reset();
}
};