Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Don't set Ctty
Browse files Browse the repository at this point in the history
The https://go-review.googlesource.com/c/go/+/231638/ commit on Golang
introduced a failure on Kata Containers when the runtime is built with
golang 15.2+.

Fixes: #2982

Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Nov 18, 2020
1 parent 738409d commit c56af73
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions virtcontainers/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ func startShim(args []string, params ShimParams) (int, error) {
cmd.Stderr = f
// Create Session
cmd.SysProcAttr.Setsid = true
// Set Controlling terminal to Ctty
cmd.SysProcAttr.Setctty = true
cmd.SysProcAttr.Ctty = int(f.Fd())
}
defer func() {
if f != nil {
Expand Down

0 comments on commit c56af73

Please sign in to comment.