summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-22 01:45:18 +0000
committerChristopher Faylor <me@cgf.cx>2003-03-22 01:45:18 +0000
commit89e7a1ced922ad59128f0ec1223536d8d0c60e5d (patch)
treefe527f2bd2d9d067900eed9ecdca314c28d92aef
parenta13b67a6d618391b9ba1ab58221b69e9bce1b7aa (diff)
downloadcygnal-89e7a1ced922ad59128f0ec1223536d8d0c60e5d.tar.gz
cygnal-89e7a1ced922ad59128f0ec1223536d8d0c60e5d.tar.bz2
cygnal-89e7a1ced922ad59128f0ec1223536d8d0c60e5d.zip
* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary
for newer versions of bash.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fork.cc4
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index f2b5123f8..d6d67c905 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-21 Christopher Faylor <cgf@redhat.com>
+
+ * fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not
+ necessary for newer versions of bash.
+
2003-03-20 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index a547c7721..a807a34ef 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -325,6 +325,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
return 0;
}
+#ifdef SLOW_PID_REUSE
static void
slow_pid_reuse (HANDLE h)
{
@@ -349,6 +350,7 @@ slow_pid_reuse (HANDLE h)
}
nfork_procs++;
}
+#endif
static int __stdcall
fork_parent (HANDLE& hParent, dll *&first_dll,
@@ -537,7 +539,9 @@ fork_parent (HANDLE& hParent, dll *&first_dll,
goto cleanup;
}
+#ifdef SLOW_PID_REUSE
slow_pid_reuse (pi.hProcess);
+#endif
/* Wait for subproc to initialize itself. */
if (!sync_with_child (pi, subproc_ready, TRUE, "waiting for longjmp"))