From e437a7d826188da96ca9b06ecb03987196974f3f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 19 Jul 2015 22:40:29 +0200 Subject: [PATCH] Lower Cygwin's MINSIGSTKSZ and SIGSTKSZ * include/cygwin/signal.h (MINSIGSTKSZ): Define as 8K, unconditionally. (SIGSTKSZ): Define as 32K, unconditionally. Signed-off-by: Corinna Vinschen --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/cygwin/signal.h | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a606cca74..0d9df3b9b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2015-07-19 Corinna Vinschen + + * include/cygwin/signal.h (MINSIGSTKSZ): Define as 8K, unconditionally. + (SIGSTKSZ): Define as 32K, unconditionally. + 2015-07-19 Corinna Vinschen * dcrt0.cc (initial_env): Reduce size of local path buffers to diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h index cdf86b942..19dd0a64a 100644 --- a/winsup/cygwin/include/cygwin/signal.h +++ b/winsup/cygwin/include/cygwin/signal.h @@ -355,12 +355,10 @@ 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 +#undef MINSIGSTKSZ +#define MINSIGSTKSZ 8192 +#undef SIGSTKSZ +#define SIGSTKSZ 32768 #define SIGHUP 1 /* hangup */ #define SIGINT 2 /* interrupt */ -- 2.43.5