From 2b16e2d9034f201a04f3776db88cbede17eb08e8 Mon Sep 17 00:00:00 2001 From: Nikos Katsiopis Date: Fri, 15 Jan 2021 18:01:46 +0200 Subject: [PATCH] Update TokenPlayer.cpp Added a bigger sleep for Parent to child communication! --- TokenPlayer/TokenPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TokenPlayer/TokenPlayer.cpp b/TokenPlayer/TokenPlayer.cpp index d1f28df..65944c8 100644 --- a/TokenPlayer/TokenPlayer.cpp +++ b/TokenPlayer/TokenPlayer.cpp @@ -419,7 +419,7 @@ void redirectChildToParent(HANDLE hToken, BOOL isRestricted) { bSuccess = ReadFile(hStdin, chBuf, BUFSIZE, &dwRead, NULL); bSuccess = WriteFile(childInWrite, chBuf, dwRead, &dwWritten, NULL); //A small sleep to give time to the write operation to execute before we try to read from the pipe again - Sleep(100); + Sleep(1000); } WaitForSingleObject(processInformation.hProcess, INFINITE); LocalFree(chBuf);