* fork.cc (slow_pid_reuse): Temporarily double the number of pids held to

prevent pid reuse.
This commit is contained in:
Christopher Faylor 2004-09-14 02:21:09 +00:00
parent 2f514b3252
commit fc3a42749f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-09-13 Christopher Faylor <cgf@timesys.com>
* fork.cc (slow_pid_reuse): Temporarily double the number of pids held
to prevent pid reuse.
2004-09-12 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (wait_sig): Ensure that waiting threads are awoken after

View File

@ -321,7 +321,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
static void
slow_pid_reuse (HANDLE h)
{
static NO_COPY HANDLE last_fork_procs[4] = {0};
static NO_COPY HANDLE last_fork_procs[8] = {0};
static NO_COPY unsigned nfork_procs = 0;
if (nfork_procs >= (sizeof (last_fork_procs) / sizeof (last_fork_procs [0])))