Author: tedross
Date: 2009-10-19 16:23:30 -0400 (Mon, 19 Oct 2009)
New Revision: 3674
Modified:
mgmt/trunk/sesame/cpp/configure.ac
mgmt/trunk/sesame/cpp/src/SysAgent.cpp
Log:
Close standard FDs prior to entering the main execute loop.
Updated dependent library information.
Modified: mgmt/trunk/sesame/cpp/configure.ac
===================================================================
--- mgmt/trunk/sesame/cpp/configure.ac 2009-10-16 20:32:03 UTC (rev 3673)
+++ mgmt/trunk/sesame/cpp/configure.ac 2009-10-19 20:23:30 UTC (rev 3674)
@@ -87,8 +87,8 @@
QMF_GEN=$QPID_DIR/cpp/managementgen/qmf-gen
test -f $QPID_INCLUDE/qpid/agent/ManagementAgent.h || \
AC_MSG_ERROR([$QPID_DIR does not appear to be a valid qpid checkout.])
- QPID_LIBS="$QPID_SRC/libqmfagent.la"
- QPID_CXXFLAGS="-I$QPID_SRC -I${QPID_SRC}/gen"
+ QPID_LIBS="$QPID_SRC/libqmf.la"
+ QPID_CXXFLAGS="-I$QPID_SRC"
else
fail=0
AC_CHECK_PROG([QMF_GEN], [qmf-gen], [qmf-gen], [no])
Modified: mgmt/trunk/sesame/cpp/src/SysAgent.cpp
===================================================================
--- mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2009-10-16 20:32:03 UTC (rev 3673)
+++ mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2009-10-19 20:23:30 UTC (rev 3674)
@@ -372,6 +372,10 @@
agent->init(settings, interval, false, options["state-dir"].value +
"/agentdata");
+ ::close(0);
+ ::close(1);
+ ::close(2);
+
// Allocate core object
SysAgent core(agent, options["state-dir"].value + "/uuid");
core.run();
Show replies by date