Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-09-14 06:21:09 +0400
committerChristopher Faylor <me@cgf.cx>2004-09-14 06:21:09 +0400
commitfc3a42749f79e8e4576d1ac915a3a9eb8452b4c1 (patch)
tree2f21c648aa526fb8ab0a488a66671c9a3fa21b9c
parent2f514b3252441d4d7a36a546b3882fce75b102a1 (diff)
* fork.cc (slow_pid_reuse): Temporarily double the number of pids held to
prevent pid reuse.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fork.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 04f5b7af7..c22468e42 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index a2571a964..c65c22d39 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -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])))