version 1.211, 2007/09/10 08:17:07
|
version 1.211.2.1, 2007/09/12 23:56:26
|
|
|
# endif | # endif |
#endif | #endif |
| |
#if defined(PEGASUS_OS_TYPE_UNIX) |
#if defined(PEGASUS_OS_TYPE_UNIX) || defined(PEGASUS_OS_VXWORKS) |
# include <unistd.h> | # include <unistd.h> |
# include <sys/types.h> | # include <sys/types.h> |
# include <sys/stat.h> | # include <sys/stat.h> |
|
|
e.getMessage()); | e.getMessage()); |
} | } |
| |
#ifndef PEGASUS_OS_TYPE_WINDOWS |
#if !defined(PEGASUS_OS_TYPE_WINDOWS) && !defined(PEGASUS_OS_VXWORKS) |
umask(S_IRWXG|S_IRWXO); | umask(S_IRWXG|S_IRWXO); |
#endif | #endif |
| |
|
|
| |
try | try |
{ | { |
#if defined(PEGASUS_OS_TYPE_UNIX) |
#if defined(PEGASUS_OS_TYPE_UNIX) || defined(PEGASUS_OS_VXWORKS) |
// | // |
// Lock the CIMSERVER_LOCK_FILE during CIM Server start-up to prevent | // Lock the CIMSERVER_LOCK_FILE during CIM Server start-up to prevent |
// concurrent writes to this file by multiple cimserver processes | // concurrent writes to this file by multiple cimserver processes |
|
|
AutoFileLock fileLock(startupLockFileName); | AutoFileLock fileLock(startupLockFileName); |
#endif | #endif |
| |
#if defined(PEGASUS_OS_TYPE_UNIX) || defined(PEGASUS_OS_VMS) |
#if defined(PEGASUS_OS_TYPE_UNIX) || \ |
|
defined(PEGASUS_OS_VMS) || \ |
|
defined(PEGASUS_OS_VXWORKS) |
// | // |
// Check if a CIM Server is already running. If so, print an error | // Check if a CIM Server is already running. If so, print an error |
// message and notify the parent process (if there is one) to terminate | // message and notify the parent process (if there is one) to terminate |