summaryrefslogtreecommitdiffhomepage
path: root/pkg/test/testutil/sh.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/test/testutil/sh.go')
-rw-r--r--pkg/test/testutil/sh.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/test/testutil/sh.go b/pkg/test/testutil/sh.go
index 1c77562be..cd5b0557a 100644
--- a/pkg/test/testutil/sh.go
+++ b/pkg/test/testutil/sh.go
@@ -22,10 +22,10 @@ import (
"os"
"os/exec"
"strings"
- "syscall"
"time"
"github.com/kr/pty"
+ "golang.org/x/sys/unix"
)
// Prompt is used as shell prompt.
@@ -477,7 +477,7 @@ func NewShell(ctx context.Context, logger Logger) (*Shell, func(), error) {
cmd.Stdin = ptyReplica
cmd.Stdout = ptyReplica
cmd.Stderr = ptyReplica
- cmd.SysProcAttr = &syscall.SysProcAttr{
+ cmd.SysProcAttr = &unix.SysProcAttr{
Setsid: true,
Setctty: true,
Ctty: 0,