Skip to content
Snippets Groups Projects
Commit 2b17be83 authored by Gary Williams's avatar Gary Williams
Browse files

Move maxkids = cmdkids after fork of ldif2id2children. Also fix NT waiting for kids

parent d4f4f8f1
No related branches found
No related tags found
No related merge requests found
......@@ -173,8 +173,6 @@ main( int argc, char **argv )
args[i++] = NULL;
fork_child( cmd, args );
maxkids = cmdkids;
/*
* generate the dn2id and id2children indexes
*/
......@@ -197,6 +195,8 @@ main( int argc, char **argv )
args[i++] = NULL;
fork_child( cmd, args );
maxkids = cmdkids;
/*
* generate the attribute indexes
*/
......@@ -334,7 +334,7 @@ wait4kids( int nkidval )
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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment