From: Corinna Vinschen Date: Fri, 26 Jun 2015 19:41:26 +0000 (+0200) Subject: Define larger MINSIGSTKSZ and SIGSTKSZ values for Cygwin X-Git-Tag: cygwin-2_1_0-release~27 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=ba170254e6c2a81e847779f719ff61912437444e;p=newlib-cygwin.git 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 --- 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 */