From ba170254e6c2a81e847779f719ff61912437444e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 26 Jun 2015 21:41:26 +0200 Subject: [PATCH] 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 --- 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 060eb8015..7f33687ec 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2015-06-26 Corinna Vinschen + + * 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 * resource.cc (getrlimit): Fix values returned by RLIMIT_STACK. diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h index 19c845229..cdf86b942 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 */ -- 2.43.5