args[i++] = NULL;
fork_child( cmd, args );
- maxkids = cmdkids;
-
/*
* generate the dn2id and id2children indexes
*/
args[i++] = NULL;
fork_child( cmd, args );
+ maxkids = cmdkids;
+
/*
* generate the attribute indexes
*/
DWORD wait_index;
while( nkids >= nkidval )
{
- wait_index = WaitForMultipleObjects( nkids, processes, TRUE, INFINITE );
+ wait_index = WaitForMultipleObjects( nkids, processes, FALSE, INFINITE );
/*
* processes[wait_index] completed. Move any remaining indexes into its
* place in the array so it stays filled.