Commit 062a69e2 authored by Ben Gamari's avatar Ben Gamari 🐢

Check return value of QueryInformationJobObject

parent 5cf345d4
......@@ -875,6 +875,11 @@ waitForJobCompletion ( HANDLE hJob )
sizeof(JOBOBJECT_BASIC_PROCESS_ID_LIST),
NULL);
if (!success) {
maperrno();
return false;
}
if (!success && GetLastError() == ERROR_MORE_DATA) {
process_count *= 2;
free(pid_list);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment