From 2bad4c6c52865c9e4caf9f74127526ad65ff9456 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 7 Jan 2010 18:49:12 +0000 Subject: Add cluster watchdog plugin to cmake build. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896959 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/WatchDogPlugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid') diff --git a/cpp/src/qpid/cluster/WatchDogPlugin.cpp b/cpp/src/qpid/cluster/WatchDogPlugin.cpp index fc2b830dac..9b19b4f95f 100644 --- a/cpp/src/qpid/cluster/WatchDogPlugin.cpp +++ b/cpp/src/qpid/cluster/WatchDogPlugin.cpp @@ -38,6 +38,7 @@ clients of the stuck process to fail over to other members. */ +#include "config.h" #include "qpid/Plugin.h" #include "qpid/Options.h" #include "qpid/log/Statement.h" @@ -114,7 +115,7 @@ struct WatchDogPlugin : public qpid::Plugin, public qpid::sys::Fork { void child() { // Child of fork const char* watchdog = ::getenv("QPID_WATCHDOG_EXEC"); // For use in tests - if (!watchdog) watchdog=QPID_EXEC_DIR "/qpidd_watchdog"; + if (!watchdog) watchdog=QPID_LIBEXEC_DIR "/qpidd_watchdog"; std::string interval = boost::lexical_cast(settings.interval); ::execl(watchdog, watchdog, interval.c_str(), NULL); QPID_LOG(critical, "Failed to exec watchdog program " << watchdog ); -- cgit v1.2.1