From daa125ebffad1bb942b1a1c438245dc05195cc00 Mon Sep 17 00:00:00 2001 From: Ilya Lukyanov <73885545+ilyaluk@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:03:29 +0000 Subject: [PATCH] Make detached process foreground (#277) Without this flag, child process group does not become foreground and it don't control the terminal, hence stdin is not received by the child. Fixes #255 Signed-off-by: Ilya Lukyanov --- versionmanager/proxy/detach/detached_others.go | 1 + 1 file changed, 1 insertion(+) diff --git a/versionmanager/proxy/detach/detached_others.go b/versionmanager/proxy/detach/detached_others.go index c2422da..d099248 100644 --- a/versionmanager/proxy/detach/detached_others.go +++ b/versionmanager/proxy/detach/detached_others.go @@ -42,4 +42,5 @@ func InitBehaviorFromEnv(cmd *exec.Cmd) { } cmd.SysProcAttr.Setpgid = true + cmd.SysProcAttr.Foreground = true }