From 17fd6fe97bac4bb98b26b8ddcf6e460dec29c1c3 Mon Sep 17 00:00:00 2001 From: Abdulaziz Ghuloum Date: Thu, 18 Oct 2007 00:16:53 -0400 Subject: [PATCH] * fixed a bug in mmap of sigaltstack. --- src/ikarus-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ikarus-main.c b/src/ikarus-main.c index 74c9418..3922d69 100644 --- a/src/ikarus-main.c +++ b/src/ikarus-main.c @@ -307,7 +307,8 @@ SYNOPSIS void register_alt_stack(){ #ifndef __CYGWIN__ - char* stk = mmap(0, SIGSTKSZ, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON, -1, 0); + char* stk = mmap(0, SIGSTKSZ, PROT_READ|PROT_WRITE|PROT_EXEC, + MAP_PRIVATE|MAP_ANON, -1, 0); // char* stk = ik_mmap(SIGSTKSZ); if(stk == (char*)-1){ fprintf(stderr, "Cannot maloc an alt stack\n");