You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2007/05/08 20:09:38 UTC
svn commit: r536279 - /incubator/qpid/branches/M2/cpp/lib/broker/Daemon.cpp
Author: aconway
Date: Tue May 8 11:09:35 2007
New Revision: 536279
URL: http://svn.apache.org/viewvc?view=rev&rev=536279
Log:
* lib/broker/Daemon.cpp: Fixed bug causing qpidd -c to sometmes delete the pidfile.
Modified:
incubator/qpid/branches/M2/cpp/lib/broker/Daemon.cpp
Modified: incubator/qpid/branches/M2/cpp/lib/broker/Daemon.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2/cpp/lib/broker/Daemon.cpp?view=diff&rev=536279&r1=536278&r2=536279
==============================================================================
--- incubator/qpid/branches/M2/cpp/lib/broker/Daemon.cpp (original)
+++ incubator/qpid/branches/M2/cpp/lib/broker/Daemon.cpp Tue May 8 11:09:35 2007
@@ -51,7 +51,7 @@
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();