aboutsummaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-22 21:26:21 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-22 21:28:23 +0900
commit50aac2ffd59c7b0d871a82c23048846ad2f3f38b (patch)
tree08a2cb06e1ec37c4aef8bf5fe8088e0af64f88e9 /signal.c
parent8b0dc77a621ded75f72486c33f55404ce73f00d7 (diff)
downloadruby-50aac2ffd59c7b0d871a82c23048846ad2f3f38b.tar.gz
Share the size for sigaltstack between configure.ac and signal.c
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/signal.c b/signal.c
index 7f8687e436..615ceb7c6e 100644
--- a/signal.c
+++ b/signal.c
@@ -524,11 +524,13 @@ typedef RETSIGTYPE ruby_sigaction_t(int);
#endif
#ifdef USE_SIGALTSTACK
+/* XXX: BSD_vfprintf() uses >1500B stack and x86-64 need >5KiB stack. */
+#define RUBY_SIGALTSTACK_SIZE (16*1024)
+
static int
rb_sigaltstack_size(void)
{
- /* XXX: BSD_vfprintf() uses >1500B stack and x86-64 need >5KiB stack. */
- int size = 16*1024;
+ int size = RUBY_SIGALTSTACK_SIZE;
#ifdef MINSIGSTKSZ
{