Skip to content

Commit

Permalink
Fixed a crash after the stop command. Still unstable, probably due to…
Browse files Browse the repository at this point in the history
… terminateProcess.
  • Loading branch information
Asumu Takikawa committed Aug 10, 2007
1 parent b24a7ac commit 10f1528
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Main.hs
Expand Up @@ -215,10 +215,11 @@ stopCommand dat = do
case handles of
Nothing -> errorMessage dat "No compiler running to stop."
Just (Handles inp pid oid eid) -> do
terminateProcess pid
waitForProcess pid
killThread oid
killThread eid
terminateProcess pid
waitForProcess pid
setHandles dat Nothing
startEvaluator dat Nothing

{-
Expand Down

0 comments on commit 10f1528

Please sign in to comment.