Open standalone runtime ports in binary mode (#608)

This commit is contained in:
Jonatan Kłosko 2021-10-19 14:27:38 +02:00 committed by GitHub
parent 86e74c90ef
commit 05490b43cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -55,6 +55,7 @@ defmodule Livebook.Runtime.ElixirStandalone do
defp start_elixir_node(elixir_path, node_name, eval, argv) do
# Here we create a port to start the system process in a non-blocking way.
Port.open({:spawn_executable, elixir_path}, [
:binary,
# We don't communicate with the system process via stdio,
# contrarily, we want any non-captured output to go directly
# to the terminal

View file

@ -105,6 +105,7 @@ defmodule Livebook.Runtime.MixStandalone do
defp start_elixir_mix_node(elixir_path, node_name, eval, argv, project_path) do
# Here we create a port to start the system process in a non-blocking way.
Port.open({:spawn_executable, elixir_path}, [
:binary,
# We don't communicate with the system process via stdio,
# contrarily, we want any non-captured output to go directly
# to the terminal