We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a726780 commit b5374eaCopy full SHA for b5374ea
PipeServer/Messages.cpp
@@ -22,7 +22,8 @@ bool CloseProcessRequest::Handle(MessageClient& client)
22
//---------------------------------------------------------------------------
23
bool IsValidRequest::Handle(MessageClient& client)
24
{
25
- const auto success = WaitForSingleObject(GetRemoteId(), 0) == WAIT_TIMEOUT;
+ DWORD exitCode = 0;
26
+ const auto success = GetExitCodeProcess(GetRemoteId(), &exitCode) != FALSE && exitCode == STILL_ACTIVE;
27
28
client.Send(StatusResponse(GetRemoteId(), success));
29
0 commit comments