summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-05-08 18:09:35 +0000
committerAlan Conway <aconway@apache.org>2007-05-08 18:09:35 +0000
commit3a6243dab4b97daa2c79a45a69e1106aaac72fa8 (patch)
tree14d7746e7b58b9f43f7607004219192be4795b38 /cpp
parent6abe4fc19455e19069134c6b9161ef7eaee258b1 (diff)
downloadqpid-python-3a6243dab4b97daa2c79a45a69e1106aaac72fa8.tar.gz
* lib/broker/Daemon.cpp: Fixed bug causing qpidd -c to sometmes delete the pidfile.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536279 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/lib/broker/Daemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/lib/broker/Daemon.cpp b/cpp/lib/broker/Daemon.cpp
index d54882a274..9c7c7c9b81 100644
--- a/cpp/lib/broker/Daemon.cpp
+++ b/cpp/lib/broker/Daemon.cpp
@@ -51,7 +51,7 @@ const char* Daemon::getPidFile() {
return pidFile.c_str();
}
-Daemon::Daemon(const string& name_, int secs) : timeout(secs)
+Daemon::Daemon(const string& name_, int secs) : pid(-1), timeout(secs)
{
name = name_;
daemon_pid_file_ident = daemon_log_ident = name.c_str();