This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Add missing dcrt0.cc patch to previous commit
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 3 Dec 2015 12:26:58 -0000
- Subject: [newlib-cygwin] Add missing dcrt0.cc patch to previous commit
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=600c44512756da11f45bd47b64f9c9cb9b6aa955
commit 600c44512756da11f45bd47b64f9c9cb9b6aa955
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Dec 3 12:38:19 2015 +0100
Add missing dcrt0.cc patch to previous commit
* dcrt0.cc (child_info_fork::alloc_stack): Don't set stackaddr to 0.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/ChangeLog | 4 ++++
winsup/cygwin/dcrt0.cc | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a24c55e..e539b89 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2015-12-03 Corinna Vinschen <corinna@vinschen.de>
+ * dcrt0.cc (child_info_fork::alloc_stack): Don't set stackaddr to 0.
+
+2015-12-03 Corinna Vinschen <corinna@vinschen.de>
+
* child_info.h (struct child_info): Add member from_main.
* fork.cc (frok::child): Check from_main rather than stackaddr.
(frok::parent): Set ch.from_main if running in the main thread.
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index de95121..ac3360c 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -486,7 +486,6 @@ child_info_fork::alloc_stack ()
guardpage);
NtCurrentTeb()->Tib.StackLimit = stacklimit;
}
- stackaddr = 0;
/* This only affects forked children of a process started from a native
64 bit process, but it doesn't hurt to do it unconditionally. Fix
StackBase in the child to be the same as in the parent, so that the