From c1c32bceb76e11180b8e5bdca7d4aa91586f9dfa Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 1 Dec 2006 03:37:28 +0000 Subject: [PATCH] Another fix for bug #1998 - umask was not set correctly so that the web process can check the status of the scheduler (PID is stored in a file). --- campcaster/src/products/scheduler/src/XmlRpcDaemon.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/campcaster/src/products/scheduler/src/XmlRpcDaemon.cxx b/campcaster/src/products/scheduler/src/XmlRpcDaemon.cxx index c6f6f4247..80ff02e97 100644 --- a/campcaster/src/products/scheduler/src/XmlRpcDaemon.cxx +++ b/campcaster/src/products/scheduler/src/XmlRpcDaemon.cxx @@ -105,7 +105,7 @@ static const std::string confPidFileNameAttr = "pidFileName"; /** * The umask used by the daemon for file creations */ -static const mode_t uMask = 027; +static const mode_t uMask = 022; /* =============================================== local function prototypes */ @@ -256,6 +256,7 @@ XmlRpcDaemon :: loadPid(void) throw () std::ifstream pidFile(pidFileName.c_str()); if (pidFile.fail()) { + //std::cout << "XmlRpcDaemon::loadPid - Failed to open file " << pidFileName.c_str() << "\n"; return 0; } @@ -323,7 +324,7 @@ XmlRpcDaemon :: isRunning (void) throw (std::logic_error) pid = 0; } } - //std::cerr << "XmlRpcDaemon::isRunning - pid is " << pid << "\n"; + //std::cout << "XmlRpcDaemon::isRunning - pid is " << pid << "\n"; return pid; }