* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary

for newer versions of bash.
This commit is contained in:
Christopher Faylor 2003-03-22 01:45:18 +00:00
parent a13b67a6d6
commit 89e7a1ced9
2 changed files with 9 additions and 0 deletions

View File

@ -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> 2003-03-20 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and * fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and

View File

@ -325,6 +325,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
return 0; return 0;
} }
#ifdef SLOW_PID_REUSE
static void static void
slow_pid_reuse (HANDLE h) slow_pid_reuse (HANDLE h)
{ {
@ -349,6 +350,7 @@ slow_pid_reuse (HANDLE h)
} }
nfork_procs++; nfork_procs++;
} }
#endif
static int __stdcall static int __stdcall
fork_parent (HANDLE& hParent, dll *&first_dll, fork_parent (HANDLE& hParent, dll *&first_dll,
@ -537,7 +539,9 @@ fork_parent (HANDLE& hParent, dll *&first_dll,
goto cleanup; goto cleanup;
} }
#ifdef SLOW_PID_REUSE
slow_pid_reuse (pi.hProcess); slow_pid_reuse (pi.hProcess);
#endif
/* Wait for subproc to initialize itself. */ /* Wait for subproc to initialize itself. */
if (!sync_with_child (pi, subproc_ready, TRUE, "waiting for longjmp")) if (!sync_with_child (pi, subproc_ready, TRUE, "waiting for longjmp"))