Andrea Vezzosi pushed to branch wip/romes/async-rpc at Glasgow Haskell Compiler / GHC
Commits:
-
a3a21767
by Andrea Vezzosi at 2026-10-26T16:40:53+01:00
1 changed file:
Changes:
| ... | ... | @@ -77,8 +77,10 @@ sendTHComputation i msg reqHandler = mask $ \restore -> do |
| 77 | 77 | else loop
|
| 78 | 78 | in loop
|
| 79 | 79 | |
| 80 | -handleInterpProcessFailure :: InterpProcess -> SomeException -> IO a
|
|
| 81 | -handleInterpProcessFailure i e = do
|
|
| 80 | +handleInterpProcessFailure :: Interp -> InterpProcess -> SomeException -> IO a
|
|
| 81 | +handleInterpProcessFailure interp i e
|
|
| 82 | + | Just SomeAsyncException{} <- fromException e = throw e
|
|
| 83 | + | otherwise = do
|
|
| 82 | 84 | let hdl = interpHandle i
|
| 83 | 85 | ex <- getProcessExitCode hdl
|
| 84 | 86 | case ex of
|