diff options
author | Marios Titas <geopoul@gmail.com> | 2014-12-10 04:17:22 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-12-10 04:20:08 -0600 |
commit | 7ca5bb090ff78141fbe275b058a9e35ee496bd58 (patch) | |
tree | 8c2c9f635746ad42f40e216f1fdea5ae4deea3ac /rts/RtsStartup.c | |
parent | 4d1c452daf54e0ed04ee66d6d3ea9078924afd51 (diff) | |
download | haskell-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/RtsStartup.c')
-rw-r--r-- | rts/RtsStartup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c index 490f2ead38..190088274e 100644 --- a/rts/RtsStartup.c +++ b/rts/RtsStartup.c @@ -223,7 +223,7 @@ hs_init_ghc(int *argc, char **argv[], RtsConfig rts_config) getStablePtr((StgPtr)ioManagerCapabilitiesChanged_closure); #ifndef mingw32_HOST_OS getStablePtr((StgPtr)blockedOnBadFD_closure); - getStablePtr((StgPtr)runHandlers_closure); + getStablePtr((StgPtr)runHandlersPtr_closure); #endif /* initialise the shared Typeable store */ |