aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorMikael Pettersson <[email protected]>2016-02-09 10:14:36 +0100
committerMikael Pettersson <[email protected]>2016-02-09 10:14:36 +0100
commit22ec76d8bc0e4dc0017791a7bd700b3d3565311a (patch)
tree9754711ff31e8c81c0f88aecff326ccaf728c45a /erts/emulator
parent6823fb17e3cd9429f9e562d3e2e096bc1bb3ebe7 (diff)
downloadotp-22ec76d8bc0e4dc0017791a7bd700b3d3565311a.tar.gz
otp-22ec76d8bc0e4dc0017791a7bd700b3d3565311a.tar.bz2
otp-22ec76d8bc0e4dc0017791a7bd700b3d3565311a.zip
hipe_sigaltstack: correct initialization of ss.ss_flags
SS_ONSTACK may be set in oss, but it's not supposed to be set in ss, and some systems correctly reject that; current Linux kernels accept but ignore it in ss
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/hipe/hipe_x86_signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/hipe/hipe_x86_signal.c b/erts/emulator/hipe/hipe_x86_signal.c
index 10a40ce901..0ecd13c4bc 100644
--- a/erts/emulator/hipe/hipe_x86_signal.c
+++ b/erts/emulator/hipe/hipe_x86_signal.c
@@ -251,7 +251,7 @@ static void hipe_sigaltstack(void *ss_sp)
stack_t ss;
ss.ss_sp = ss_sp;
- ss.ss_flags = SS_ONSTACK;
+ ss.ss_flags = 0;
ss.ss_size = SIGSTKSZ;
if (sigaltstack(&ss, NULL) < 0) {
perror("sigaltstack");