Skip to content

Commit

Permalink
Make detached process foreground (#277)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ilyaluk authored Oct 29, 2024
1 parent 4a0e597 commit daa125e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions versionmanager/proxy/detach/detached_others.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ func InitBehaviorFromEnv(cmd *exec.Cmd) {
}

cmd.SysProcAttr.Setpgid = true
cmd.SysProcAttr.Foreground = true
}

0 comments on commit daa125e

Please sign in to comment.