| 860 | } |
| 861 | |
| 862 | static void register_wait( int32_t job_id ) |
| 863 | { |
| 864 | if ( globs.jobs > MAXIMUM_WAIT_OBJECTS ) |
| 865 | { |
| 866 | RegisterWaitForSingleObject( &cmdtab[ job_id ].wait_handle, |
| 867 | cmdtab[ job_id ].pi.hProcess, |
| 868 | &try_wait_callback, &cmdtab[ job_id ], INFINITE, |
| 869 | WT_EXECUTEDEFAULT | WT_EXECUTEONLYONCE ); |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | /* |
| 874 | * Waits for a single child process command to complete, or the timeout, |