Skip to content

Commit 2b16e2d

Browse files
authored
Update TokenPlayer.cpp
Added a bigger sleep for Parent to child communication!
1 parent 3a2e29f commit 2b16e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TokenPlayer/TokenPlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ void redirectChildToParent(HANDLE hToken, BOOL isRestricted) {
419419
bSuccess = ReadFile(hStdin, chBuf, BUFSIZE, &dwRead, NULL);
420420
bSuccess = WriteFile(childInWrite, chBuf, dwRead, &dwWritten, NULL);
421421
//A small sleep to give time to the write operation to execute before we try to read from the pipe again
422-
Sleep(100);
422+
Sleep(1000);
423423
}
424424
WaitForSingleObject(processInformation.hProcess, INFINITE);
425425
LocalFree(chBuf);

0 commit comments

Comments
 (0)