Skip to content

Commit

Permalink
Update TokenPlayer.cpp
Browse files Browse the repository at this point in the history
Added a bigger sleep for Parent to child communication!
  • Loading branch information
S1ckB0y1337 authored Jan 15, 2021
1 parent 3a2e29f commit 2b16e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TokenPlayer/TokenPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b16e2d

Please sign in to comment.