Share the size for sigaltstack between configure.ac and signal.c

This commit is contained in:
Nobuyoshi Nakada 2020-07-22 21:26:21 +09:00
parent 8b0dc77a62
commit 50aac2ffd5
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 7 additions and 4 deletions

View file

@ -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
{