From 348f4ecbc6881cd595d92ea576170c925506c1ae Mon Sep 17 00:00:00 2001 From: Paul Cadman Date: Wed, 20 Nov 2024 14:01:38 +0000 Subject: [PATCH] Set std_in to NoStream on the Anoma client process 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. --- 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) }