version 1.10, 2008/12/02 09:02:57
|
version 1.11, 2009/02/27 08:39:08
|
|
|
#include <Pegasus/Common/System.h> | #include <Pegasus/Common/System.h> |
#include <Pegasus/Common/Signal.h> | #include <Pegasus/Common/Signal.h> |
#include <Pegasus/Common/AutoPtr.h> | #include <Pegasus/Common/AutoPtr.h> |
|
#include <Pegasus/Common/Exception.h> |
#include <Service/PidFile.h> | #include <Service/PidFile.h> |
#include <Service/ServerRunStatus.h> | #include <Service/ServerRunStatus.h> |
| |
|
|
if (_event == NULL) | if (_event == NULL) |
{ | { |
_event = CreateEvent(NULL, TRUE, TRUE, _serverName); | _event = CreateEvent(NULL, TRUE, TRUE, _serverName); |
|
if (_event == NULL) |
|
{ |
|
throw Exception(MessageLoaderParms( |
|
"src.Server.cimserver_windows.EVENT_CREATION_FAILED", |
|
"Event Creation Failed : $0.", |
|
PEGASUS_SYSTEM_ERRORMSG_NLS)); |
|
} |
if ((_event != NULL) && (GetLastError() != ERROR_ALREADY_EXISTS)) | if ((_event != NULL) && (GetLastError() != ERROR_ALREADY_EXISTS)) |
{ | { |
_wasAlreadyRunning = false; | _wasAlreadyRunning = false; |