diff --git a/src/c/stacks.d b/src/c/stacks.d index a9eda6750..cfa561182 100644 --- a/src/c/stacks.d +++ b/src/c/stacks.d @@ -668,22 +668,4 @@ init_stacks(cl_env_ptr env) ihs_org.function = Cnil; ihs_org.lex_env = Cnil; ihs_org.index = 0; - -#if 0 /* defined(HAVE_SIGPROCMASK) && defined(SA_SIGINFO) && defined(SA_ONSTACK) */ - if (ecl_option_values[ECL_OPT_SIGALTSTACK_SIZE]) { - stack_t new_stack; - cl_index size = ecl_option_values[ECL_OPT_SIGALTSTACK_SIZE]; - if (size < SIGSTKSZ) { - size = SIGSTKSZ + (sizeof(double)*16) + - (sizeof(cl_object)*4); - } - env->altstack_size = size; - env->altstack = ecl_alloc_atomic(size); - memset(&new_stack, 0, sizeof(new_stack)); - new_stack.ss_size = env->altstack_size; - new_stack.ss_sp = env->altstack; - new_stack.ss_flags = 0; - sigaltstack(&new_stack, NULL); - } -#endif } diff --git a/src/c/unixint.d b/src/c/unixint.d index 2c635cec8..0ccca7b97 100644 --- a/src/c/unixint.d +++ b/src/c/unixint.d @@ -215,11 +215,6 @@ mysignal(int code, void (*handler)(int, siginfo_t *, void*)) #ifdef SA_SIGINFO action.sa_sigaction = handler; action.sa_flags = SA_SIGINFO; -# if 0 && defined(SA_ONSTACK) - if (code == SIGSEGV) { - action.sa_flags |= SA_ONSTACK; - } -# endif #else action.sa_handler = handler; action.sa_flags = 0;