OSDN Git Service

* fork.cc (slow_pid_reuse): Temporarily double the number of pids held to
authorcgf <cgf>
Tue, 14 Sep 2004 02:21:08 +0000 (02:21 +0000)
committercgf <cgf>
Tue, 14 Sep 2004 02:21:08 +0000 (02:21 +0000)
prevent pid reuse.

winsup/cygwin/ChangeLog
winsup/cygwin/fork.cc

index 04f5b7a..c22468e 100644 (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
index a2571a9..c65c22d 100644 (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])))