From 786c7d9fa98c1d8af02b5a0a9d3be5b704ebf0d5 Mon Sep 17 00:00:00 2001 From: Max Fierke Date: Wed, 7 Apr 2021 20:50:37 -0500 Subject: [PATCH] Don't expose STKSZ on Signal --- src/signal.cr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/signal.cr b/src/signal.cr index 6c58d0d7e8cb..ae9aa017dccb 100644 --- a/src/signal.cr +++ b/src/signal.cr @@ -56,7 +56,6 @@ enum Signal : Int32 USR1 = LibC::SIGUSR1 USR2 = LibC::SIGUSR2 WINCH = LibC::SIGWINCH - STKSZ = LibC::SIGSTKSZ {% if flag?(:linux) %} PWR = LibC::SIGPWR @@ -167,8 +166,8 @@ enum Signal : Int32 return unless @@setup_segfault_handler.test_and_set altstack = LibC::StackT.new - altstack.ss_sp = LibC.malloc(STKSZ) - altstack.ss_size = STKSZ + altstack.ss_sp = LibC.malloc(LibC::SIGSTKSZ) + altstack.ss_size = LibC::SIGSTKSZ altstack.ss_flags = 0 LibC.sigaltstack(pointerof(altstack), nil)