summaryrefslogtreecommitdiff
path: root/rts/posix/Signals.c
diff options
context:
space:
mode:
authorMarios Titas <geopoul@gmail.com>2014-12-10 04:17:22 -0600
committerAustin Seipp <austin@well-typed.com>2014-12-10 04:20:08 -0600
commit7ca5bb090ff78141fbe275b058a9e35ee496bd58 (patch)
tree8c2c9f635746ad42f40e216f1fdea5ae4deea3ac /rts/posix/Signals.c
parent4d1c452daf54e0ed04ee66d6d3ea9078924afd51 (diff)
downloadhaskell-7ca5bb090ff78141fbe275b058a9e35ee496bd58.tar.gz
compiler: fix trac issue #9817
Summary: When we call runHandlers, we must pass it a ForeignPtr. To ensure that this happens, we introduce a wrapper that receives a plain Ptr and converts it into a ForeignPtr. Then we adjust startSignalHandlers in rts/posix/Signals.c to call the wrapper instead of calling runHandlers directly. Reviewers: hvr, austin, rwbarton, simonmar Reviewed By: austin, simonmar Subscribers: simonmar, thomie, carter Differential Revision: https://phabricator.haskell.org/D515 GHC Trac Issues: #9817
Diffstat (limited to 'rts/posix/Signals.c')
-rw-r--r--rts/posix/Signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c
index 36a72a5c8e..44bd0b6d9c 100644
--- a/rts/posix/Signals.c
+++ b/rts/posix/Signals.c
@@ -473,7 +473,7 @@ startSignalHandlers(Capability *cap)
RtsFlags.GcFlags.initialStkSize,
rts_apply(cap,
rts_apply(cap,
- &base_GHCziConcziSignal_runHandlers_closure,
+ &base_GHCziConcziSignal_runHandlersPtr_closure,
rts_mkPtr(cap, info)),
rts_mkInt(cap, info->si_signo))));
}