]> git.sur5r.net Git - openldap/commitdiff
I moved slap_shutdown after the waitforkids. I also wait for each process to complet...
authorGary Williams <gwilliams@openldap.org>
Wed, 14 Apr 1999 16:56:23 +0000 (16:56 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 14 Apr 1999 16:56:23 +0000 (16:56 +0000)
servers/slapd/tools/ldif2ldbm.c

index ff2351348211dfd1c436223e8b0bccfd719b9b32..5b7f80b7e20acc3908bcbb641c60d97e33d32813 100644 (file)
@@ -274,10 +274,10 @@ main( int argc, char **argv )
                }
        }
 
-       slap_shutdown(dbnum);
-
        wait4kids( -1 );
 
+       slap_shutdown(dbnum);
+
        slap_destroy();
 
        return( 0 );
@@ -315,8 +315,12 @@ fork_child( char *prog, char *args[] )
         perror( "CreateProcess" );
         exit (-1);
     }
+#ifndef IMDARING
+    WaitForSingleObject( proc_info.hProcess, INFINITE );
+#else
     processes[nprocesses] = proc_info.hProcess;
     nprocesses++;
+#endif
 }
 
 static void