mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
Move maxkids = cmdkids after fork of ldif2id2children. Also fix NT waiting for kids
This commit is contained in:
parent
d4f4f8f197
commit
2b17be8329
1 changed files with 3 additions and 3 deletions
|
|
@ -173,8 +173,6 @@ main( int argc, char **argv )
|
||||||
args[i++] = NULL;
|
args[i++] = NULL;
|
||||||
fork_child( cmd, args );
|
fork_child( cmd, args );
|
||||||
|
|
||||||
maxkids = cmdkids;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* generate the dn2id and id2children indexes
|
* generate the dn2id and id2children indexes
|
||||||
*/
|
*/
|
||||||
|
|
@ -197,6 +195,8 @@ main( int argc, char **argv )
|
||||||
args[i++] = NULL;
|
args[i++] = NULL;
|
||||||
fork_child( cmd, args );
|
fork_child( cmd, args );
|
||||||
|
|
||||||
|
maxkids = cmdkids;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* generate the attribute indexes
|
* generate the attribute indexes
|
||||||
*/
|
*/
|
||||||
|
|
@ -334,7 +334,7 @@ wait4kids( int nkidval )
|
||||||
DWORD wait_index;
|
DWORD wait_index;
|
||||||
while( nkids >= nkidval )
|
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
|
* processes[wait_index] completed. Move any remaining indexes into its
|
||||||
* place in the array so it stays filled.
|
* place in the array so it stays filled.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue