I moved slap_shutdown after the waitforkids. I also wait for each process to complete before returning from fork_child since I had two lockups on my NT box.

This commit is contained in:
Gary Williams 1999-04-14 16:56:23 +00:00
parent a899d9e356
commit 84f84c28b8

View 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