mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
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:
parent
a899d9e356
commit
84f84c28b8
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue