-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tty in local_resource kills tilt #6378
Labels
bug
Something isn't working
Comments
i was able to get something working by attaching a pty to stdin of the process... i'm not sure if that's a good general solution (since some stuff may behave differently when it's interacting with a pty) but i guess we can make it an option |
nicks
added a commit
that referenced
this issue
May 23, 2024
Allows users to attach a pty, for interactive commands that try to grab the "main" tty fixes #6378 Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks
added a commit
that referenced
this issue
May 24, 2024
Allows users to attach a pty, for interactive commands that try to grab the "main" tty fixes #6378 Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks
added a commit
that referenced
this issue
May 24, 2024
Allows users to attach a pty, for interactive commands that try to grab the "main" tty fixes #6378 Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks
added a commit
that referenced
this issue
May 24, 2024
Allows users to attach a pty, for interactive commands that try to grab the "main" tty fixes #6378 Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks
added a commit
that referenced
this issue
May 24, 2024
Allows users to attach a pty, for interactive commands that try to grab the "main" tty fixes #6378 Signed-off-by: Nick Santos <nick.santos@docker.com>
the pr was rolled back |
nicks
added a commit
that referenced
this issue
May 31, 2024
this starts to stretch my knowledge of low-level unix process apis, but my current understanding is: - every process has a process group id and a session id - all processes in a group belong to the same session - setpgid creates a new process group id in the same session - setsid creates a new sessions and new process group - process groups are used to send signals to sets of processes - sessions are used to attach a process to a controlling terminal using a new session here ensures that the subprocess can't run something that closes the terminal controlling tilt, or put tilt in the background. fixes #6378 fixes #6387 Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks
added a commit
that referenced
this issue
Jun 3, 2024
this starts to stretch my knowledge of low-level unix process apis, but my current understanding is: - every process has a process group id and a session id - all processes in a group belong to the same session - setpgid creates a new process group id in the same session - setsid creates a new sessions and new process group - process groups are used to send signals to sets of processes - sessions are used to attach a process to a controlling terminal using a new session here ensures that the subprocess can't run something that closes the terminal controlling tilt, or put tilt in the background. fixes #6378 fixes #6387 Signed-off-by: Nick Santos <nick.santos@docker.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to Reproduce
Tiltfile:
test.sh:
tilt up
and wait a little whilespace
Expected Behavior
Tilt should successfully run the command
Current Behavior
On macOS, tilt crashes with
suspended (tty input)
On Linux, the terminal gets mysteriously detached from the tilt process
The text was updated successfully, but these errors were encountered: