Skip to content

Commit

Permalink
Set std_in to NoStream on the Anoma client process
Browse files Browse the repository at this point in the history
We do not read from the Anoma client process 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 committed Nov 20, 2024
1 parent 8658420 commit 15e4f75
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 15e4f75

Please sign in to comment.