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>2005-05-19 03:30:02 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-19 03:30:02 +0400
commit24515d6563060fda3ad1d0cfa7bbb6936521895b (patch)
treec4d7561c0be3de56e4c9bf9019cc68543c53cb26 /winsup/cygwin/fork.cc
parent0a99fce172c2ca9898f084554f1199032315edea (diff)
* cygtls.h (_local_storage::unknown_thread_name): New buffer.
* tlsoffsets.h: Regenerate. * cygthread.cc (cygthread::name): Use new thread-local buffer. * exceptions.cc (handle_exceptions): Avoid unnecessary initialization of static variables to zero. * fork.cc (slow_pid_reuse) Ditto.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index ba7a91e22..f2e287c73 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -252,8 +252,8 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
static void
slow_pid_reuse (HANDLE h)
{
- static NO_COPY HANDLE last_fork_procs[NPIDS_HELD] = {0};
- static NO_COPY unsigned nfork_procs = 0;
+ static NO_COPY HANDLE last_fork_procs[NPIDS_HELD];
+ static NO_COPY unsigned nfork_procs;
if (nfork_procs >= (sizeof (last_fork_procs) / sizeof (last_fork_procs [0])))
nfork_procs = 0;