Skip to content

Commit

Permalink
Set std_in to NoStream on the Anoma client process (#3182)
Browse files Browse the repository at this point in the history
This PR sets `std_in` to `NoStream` on the Anoma client process.


https://hackage.haskell.org/package/process-1.6.25.0/docs/System-Process.html#t:StdStream

We do not read from the Anoma client process stdin so we do not need to
open a handle to stdin.

This fixes an issue where the Anoma client stdin does not get cleaned up
correctly on exit which causes subsequent input to the terminal to be
corrupted.
  • Loading branch information
paulcadman authored Nov 20, 2024
1 parent 2e38aa6 commit 19ecfa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Anoma/Effect/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ anomaCreateProcess = do
return
(proc "mix" ["run", "--no-halt", "-e", unpack (T.strip (decodeUtf8 anomaStartExs))])
{ std_out = CreatePipe,
std_in = NoStream,
cwd = Just (toFilePath anomapath)
}

Expand Down

0 comments on commit 19ecfa9

Please sign in to comment.