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

I moved slap_shutdown after the waitforkids. I also wait for each process to...

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.
parent a899d9e3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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