1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-02 01:04:57 +03:00

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.
This commit is contained in:
Paul Cadman 2024-11-20 17:07:52 +00:00 committed by GitHub
parent 2e38aa609f
commit 19ecfa931b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}