diff options
| author | Alan Conway <aconway@apache.org> | 2010-01-07 18:49:12 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-01-07 18:49:12 +0000 |
| commit | 2bad4c6c52865c9e4caf9f74127526ad65ff9456 (patch) | |
| tree | 918603b658b5be80d203106e1776161476662c1f /cpp/src/qpid/cluster/WatchDogPlugin.cpp | |
| parent | 1b384a882f165eb4067b55df0109d89a9d77b63c (diff) | |
| download | qpid-python-2bad4c6c52865c9e4caf9f74127526ad65ff9456.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/cluster/WatchDogPlugin.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/WatchDogPlugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<std::string>(settings.interval); ::execl(watchdog, watchdog, interval.c_str(), NULL); QPID_LOG(critical, "Failed to exec watchdog program " << watchdog ); |
