Andrea Vezzosi pushed to branch wip/romes/async-rpc at Glasgow Haskell Compiler / GHC
Commits:
-
9ecaacd2
by Andrea Vezzosi at 2026-11-16T09:00:22+01:00
1 changed file:
Changes:
| ... | ... | @@ -668,7 +668,7 @@ stopInterp interp = case interpInstance interp of |
| 668 | 668 | pure (InterpPending,e)
|
| 669 | 669 | where
|
| 670 | 670 | gracefulShutdown i restore = do
|
| 671 | - x <- try (timeLimited restore (sendMessage i Shutdown) `finally` closePipe (interpPipe (instProcess i)))
|
|
| 671 | + x <- try (liftM2 (>>) (timeLimited restore (sendMessage i Shutdown)) (timeLimited restore (closePipe (interpPipe (instProcess i)))))
|
|
| 672 | 672 | let ph = interpHandle (instProcess i)
|
| 673 | 673 | e <- case x of
|
| 674 | 674 | -- happy path: ext. interp. should be shutting down of its own accord.
|