From 0582c929439b382a78eb40d83466b60ec2efbb3d Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 29 Jun 2005 15:29:53 +0000 Subject: [PATCH] actually set up the 2nd stack (8k - much mroe than we need) SVN revision: 15570 --- src/bin/e_main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/bin/e_main.c b/src/bin/e_main.c index bbbc0de0c..a1903d724 100644 --- a/src/bin/e_main.c +++ b/src/bin/e_main.c @@ -65,10 +65,21 @@ main(int argc, char **argv) char buf[1024]; char *s; struct sigaction action; - /* trap deadly bug signals and allow some form of sane recovery */ /* or ability to gdb attach and debug at this point - better than your */ /* wm/desktop vanishing and not knowing what happened */ + +#if 1 + { + stack_t ss; + + ss.ss_sp = malloc(8 * 1024); + ss.ss_size = 8 * 1024; + ss.ss_flags = 0; + sigaltstack(&ss, NULL); + } +#endif + action.sa_sigaction = e_sigseg_act; action.sa_flags = SA_ONSTACK | SA_NODEFER | SA_RESETHAND | SA_SIGINFO; sigemptyset(&action.sa_mask);