diff options
author | Christopher Faylor <me@cgf.cx> | 2004-09-14 23:44:50 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-09-14 23:44:50 +0000 |
commit | a9f36d288c287f691f9a21fb9d747f45673236cf (patch) | |
tree | 98599bcc2b5a69a2bca870b1aab5b8fe181b2e7e /winsup/cygwin/fork.cc | |
parent | 98650d2fa2d2443ede83cc9f5d21d39e8078e60b (diff) | |
download | newlib-a9f36d288c287f691f9a21fb9d747f45673236cf.zip newlib-a9f36d288c287f691f9a21fb9d747f45673236cf.tar.gz newlib-a9f36d288c287f691f9a21fb9d747f45673236cf.tar.bz2 |
* cygtls.h: Add alignment kludge to fix disparity between compilers.
* tlsoffsets.h: Regenerate.
* fork.cc (slow_pid_reuse): Use define to control number of pids held to
prevent pid reuse.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r-- | winsup/cygwin/fork.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index c65c22d..08edff2 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -31,6 +31,8 @@ details. */ #include "cygmalloc.h" #include "cygthread.h" +#define NPIDS_HELD 8 + /* Timeout to wait for child to start, parent to init child, etc. */ /* FIXME: Once things stabilize, bump up to a few minutes. */ #define FORK_WAIT_TIMEOUT (300 * 1000) /* 300 seconds */ @@ -321,7 +323,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[8] = {0}; + static NO_COPY HANDLE last_fork_procs[NPIDS_HELD] = {0}; static NO_COPY unsigned nfork_procs = 0; if (nfork_procs >= (sizeof (last_fork_procs) / sizeof (last_fork_procs [0]))) |