summaryrefslogtreecommitdiff
path: root/src/mongo/util/ntservice.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2017-08-28 18:09:22 -0400
committerSara Golemon <sara.golemon@mongodb.com>2017-09-01 16:53:27 -0400
commitbd153cba11ab82ffbf8d2bc0b801eb808369eb9e (patch)
tree9e0f9cca88d27190ac0ba03019fdd97fddb8b75a /src/mongo/util/ntservice.cpp
parentc30149da2ea0af52a1532017550431ac356f04f3 (diff)
downloadmongo-bd153cba11ab82ffbf8d2bc0b801eb808369eb9e.tar.gz
SERVER-29341 Set KeepAlive params on windows and mac
Diffstat (limited to 'src/mongo/util/ntservice.cpp')
-rw-r--r--src/mongo/util/ntservice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/ntservice.cpp b/src/mongo/util/ntservice.cpp
index edcf716e1a6..b0db46aecf3 100644
--- a/src/mongo/util/ntservice.cpp
+++ b/src/mongo/util/ntservice.cpp
@@ -287,7 +287,7 @@ void installServiceOrDie(const wstring& serviceName,
SC_HANDLE schSCManager = ::OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (schSCManager == NULL) {
DWORD err = ::GetLastError();
- log() << "Error connecting to the Service Control Manager: " << GetWinErrMsg(err);
+ log() << "Error connecting to the Service Control Manager: " << windows::GetErrMsg(err);
quickExit(EXIT_NTSERVICE_ERROR);
}
@@ -336,7 +336,7 @@ void installServiceOrDie(const wstring& serviceName,
NULL); // user account password
if (schService == NULL) {
DWORD err = ::GetLastError();
- log() << "Error creating service: " << GetWinErrMsg(err);
+ log() << "Error creating service: " << windows::GetErrMsg(err);
::CloseServiceHandle(schSCManager);
quickExit(EXIT_NTSERVICE_ERROR);
}
@@ -441,7 +441,7 @@ void removeServiceOrDie(const wstring& serviceName) {
SC_HANDLE schSCManager = ::OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (schSCManager == NULL) {
DWORD err = ::GetLastError();
- log() << "Error connecting to the Service Control Manager: " << GetWinErrMsg(err);
+ log() << "Error connecting to the Service Control Manager: " << windows::GetErrMsg(err);
quickExit(EXIT_NTSERVICE_ERROR);
}