From 19ecfa931ba05153e59ecc345daace23ced12d97 Mon Sep 17 00:00:00 2001 From: Paul Cadman Date: Wed, 20 Nov 2024 17:07:52 +0000 Subject: [PATCH] Set std_in to NoStream on the Anoma client process (#3182) 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. --- src/Anoma/Effect/Base.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Anoma/Effect/Base.hs b/src/Anoma/Effect/Base.hs index 390621bfc3..f619851d07 100644 --- a/src/Anoma/Effect/Base.hs +++ b/src/Anoma/Effect/Base.hs @@ -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) }