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:
authorCorinna Vinschen <corinna@vinschen.de>2016-07-06 20:12:59 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-07-06 20:12:59 +0300
commit8cff1569fc5816a8b38ad47834cebd109dad1cce (patch)
tree21c796f2b7ae3f98222dd8bdc480fdf46a9d87c6 /winsup/cygwin/strace.cc
parent28d393c001975a62af6952a1f516d37a1413ce34 (diff)
strace: Make sure strace timer isn't copied to child process
At fork time the .data and .bss segments of the Cygwin DLL are copied over to the child process. This also copies the strace timer since it's in the .bss segment so far. Fix that by moving the strace timer out into the .data_cygwin_nocopy segment. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/strace.cc')
-rw-r--r--winsup/cygwin/strace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/strace.cc b/winsup/cygwin/strace.cc
index a05a4e008..1e7ab047d 100644
--- a/winsup/cygwin/strace.cc
+++ b/winsup/cygwin/strace.cc
@@ -82,7 +82,7 @@ strace::dll_info ()
int
strace::microseconds ()
{
- static hires_ns now;
+ static hires_ns now NO_COPY;
return (int) now.usecs ();
}