* fork.cc (slow_pid_reuse): Temporarily double the number of pids held to
prevent pid reuse.
This commit is contained in:
parent
2f514b3252
commit
fc3a42749f
@ -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>
|
2004-09-12 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* sigproc.cc (wait_sig): Ensure that waiting threads are awoken after
|
* sigproc.cc (wait_sig): Ensure that waiting threads are awoken after
|
||||||
|
@ -321,7 +321,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
|
|||||||
static void
|
static void
|
||||||
slow_pid_reuse (HANDLE h)
|
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;
|
static NO_COPY unsigned nfork_procs = 0;
|
||||||
|
|
||||||
if (nfork_procs >= (sizeof (last_fork_procs) / sizeof (last_fork_procs [0])))
|
if (nfork_procs >= (sizeof (last_fork_procs) / sizeof (last_fork_procs [0])))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user