From: Gary Williams Date: Fri, 7 May 1999 14:30:31 +0000 (+0000) Subject: Move maxkids = cmdkids after fork of ldif2id2children. Also fix NT waiting for kids X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b17be8329bd6923f6c33435a993d58af6b2ac2c;p=openldap Move maxkids = cmdkids after fork of ldif2id2children. Also fix NT waiting for kids --- diff --git a/servers/slapd/tools/ldif2ldbm.c b/servers/slapd/tools/ldif2ldbm.c index ec0ca9c506..d84276b3c2 100644 --- a/servers/slapd/tools/ldif2ldbm.c +++ b/servers/slapd/tools/ldif2ldbm.c @@ -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.