mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
This commit is contained in:
parent
3f50bf652b
commit
b26a9b10ea
6 changed files with 7 additions and 7 deletions
|
@ -535,7 +535,7 @@ run_child(wchar_t * cmdline)
|
|||
error(RC_CREATE_PROCESS, L"Unable to create process using '%s'", cmdline);
|
||||
AssignProcessToJobObject(job, pi.hProcess);
|
||||
CloseHandle(pi.hThread);
|
||||
WaitForSingleObject(pi.hProcess, INFINITE);
|
||||
WaitForSingleObjectEx(pi.hProcess, INFINITE, FALSE);
|
||||
ok = GetExitCodeProcess(pi.hProcess, &rc);
|
||||
if (!ok)
|
||||
error(RC_CREATE_PROCESS, L"Failed to get exit code of process");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue