diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-22 21:26:21 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-22 21:28:23 +0900 |
commit | 50aac2ffd59c7b0d871a82c23048846ad2f3f38b (patch) | |
tree | 08a2cb06e1ec37c4aef8bf5fe8088e0af64f88e9 /signal.c | |
parent | 8b0dc77a621ded75f72486c33f55404ce73f00d7 (diff) |
Share the size for sigaltstack between configure.ac and signal.c
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 { |