mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Share the size for sigaltstack between configure.ac and signal.c
This commit is contained in:
parent
8b0dc77a62
commit
50aac2ffd5
2 changed files with 7 additions and 4 deletions
6
signal.c
6
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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue