Skip to content
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

feat: run child process in foreground on interactive #216

Merged
merged 1 commit into from
May 20, 2024

Conversation

mloberg
Copy link
Contributor

@mloberg mloberg commented May 20, 2024

When running with interactive (-i), run the child process in the foreground. Otherwise create a session

When running with interactive (-i), run the child process in the
foreground. Otherwise create a session
@mloberg mloberg marked this pull request as ready for review May 20, 2024 15:49
@mloberg mloberg requested a review from a team as a code owner May 20, 2024 15:49
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
}

isTerm := term.IsTerminal(int(os.Stdin.Fd()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎 !!

@mloberg mloberg merged commit 47db45c into main May 20, 2024
3 checks passed
@mloberg mloberg deleted the fix/foreground-interactive branch May 20, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants