chore: Improve logging for pipe readers in Windows watchdog
This commit is contained in:
parent
b2ca9bc17b
commit
f0c60f5ca9
1 changed files with 2 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ void MSWindowsWatchdog::mainLoop(void *)
|
|||
saAttr.lpSecurityDescriptor = NULL;
|
||||
|
||||
if (!CreatePipe(&m_outputReadPipe, &m_outputWritePipe, &saAttr, 0)) {
|
||||
LOG((CLOG_ERR "could not create output pipe"));
|
||||
LOG_ERR("could not create output pipe");
|
||||
throw XArch(new XArchEvalWindows());
|
||||
}
|
||||
|
||||
|
|
@ -196,6 +196,7 @@ void MSWindowsWatchdog::mainLoop(void *)
|
|||
// in order to speed up the shutdown process when the Windows service needs to stop.
|
||||
DWORD mode = PIPE_NOWAIT;
|
||||
if (!SetNamedPipeHandleState(m_outputReadPipe, &mode, nullptr, nullptr)) {
|
||||
LOG_ERR("could not set pipe to non-blocking mode");
|
||||
throw XArch(new XArchEvalWindows());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue