This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Define larger MINSIGSTKSZ and SIGSTKSZ values for Cygwin
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 26 Jun 2015 19:41:36 -0000
- Subject: [newlib-cygwin] Define larger MINSIGSTKSZ and SIGSTKSZ values for Cygwin
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ba170254e6c2a81e847779f719ff61912437444e
commit ba170254e6c2a81e847779f719ff61912437444e
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Jun 26 21:41:26 2015 +0200
Define larger MINSIGSTKSZ and SIGSTKSZ values for Cygwin
* include/cygwin/signal.h: Revert to define MINSIGSTKSZ and SIGSTKSZ
here with bigger values to allow _cygtls to reside on signal stack,
should it turn out to be required at one point.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/ChangeLog | 6 ++++++
winsup/cygwin/include/cygwin/signal.h | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 060eb80..7f33687 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2015-06-26 Corinna Vinschen <corinna@vinschen.de>
+ * include/cygwin/signal.h: Revert to define MINSIGSTKSZ and SIGSTKSZ
+ here with bigger values to allow _cygtls to reside on signal stack,
+ should it turn out to be required at one point.
+
+2015-06-26 Corinna Vinschen <corinna@vinschen.de>
+
* resource.cc (getrlimit): Fix values returned by RLIMIT_STACK.
Explain why this had to be changed.
diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h
index 19c8452..cdf86b9 100644
--- a/winsup/cygwin/include/cygwin/signal.h
+++ b/winsup/cygwin/include/cygwin/signal.h
@@ -355,6 +355,13 @@ struct sigaction
Do not use. */
#define _SA_INTERNAL_MASK 0xf000 /* bits in this range are internal */
+#ifndef MINSIGSTKSZ
+#define MINSIGSTKSZ 32768
+#endif
+#ifndef SIGSTKSZ
+#define SIGSTKSZ 65536
+#endif
+
#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* interrupt */
#define SIGQUIT 3 /* quit */