summaryrefslogtreecommitdiff
path: root/cpp/lib
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib')
-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();