Andrea Vezzosi pushed to branch wip/romes/async-rpc at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • compiler/GHC/Runtime/Interpreter/Process.hs
    ... ... @@ -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