Changeset 3173 in kBuild for trunk/src/kmk/w32/w32os.c
- Timestamp:
- Mar 21, 2018 9:37:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/w32/w32os.c
r3156 r3173 187 187 /* Build array of handles to wait for. */ 188 188 dwHandleCount = 1 + process_set_handles (&handles[1]); 189 #else190 /* Add the completed children event as the 2nd one. */191 handles[1] = (HANDLE)MkWinChildGetCompleteEventHandle();192 dwHandleCount = 2;193 #endif194 195 189 dwEvent = WaitForMultipleObjects ( 196 190 dwHandleCount, /* number of objects in array */ … … 198 192 FALSE, /* wait for any object */ 199 193 INFINITE); /* wait until object is signalled */ 194 #else 195 /* Add the completed children event as the 2nd one. */ 196 handles[1] = (HANDLE)MkWinChildGetCompleteEventHandle(); 197 if (handles[1] == NULL) 198 return 0; 199 dwHandleCount = 2; 200 dwEvent = WaitForMultipleObjectsEx (dwHandleCount, 201 handles, 202 FALSE /*bWaitAll*/, 203 256, /* INFINITE - paranoia, only wait 256 ms before checking again. */ 204 TRUE /*bAlertable*/); 205 #endif 200 206 201 207 if (dwEvent == WAIT_FAILED)
Note:
See TracChangeset
for help on using the changeset viewer.