mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Merge 8404c4668d
into d025bc230c
This commit is contained in:
commit
ac34bcb4ad
1 changed files with 2 additions and 0 deletions
2
signal.c
2
signal.c
|
@ -877,6 +877,8 @@ static void
|
||||||
check_stack_overflow(int sig, const void *addr)
|
check_stack_overflow(int sig, const void *addr)
|
||||||
{
|
{
|
||||||
int ruby_stack_overflowed_p(const rb_thread_t *, const void *);
|
int ruby_stack_overflowed_p(const rb_thread_t *, const void *);
|
||||||
|
rb_execution_context_t *ec = rb_current_execution_context(false);
|
||||||
|
if (!ec) return;
|
||||||
rb_thread_t *th = GET_THREAD();
|
rb_thread_t *th = GET_THREAD();
|
||||||
if (ruby_stack_overflowed_p(th, addr)) {
|
if (ruby_stack_overflowed_p(th, addr)) {
|
||||||
reset_sigmask(sig);
|
reset_sigmask(sig);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue