Skip to content

Commit

Permalink
create process leader for pty
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsq committed Nov 5, 2020
1 parent 813eade commit a4692ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wtc/wtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func run(ctx context.Context, name, command string, env []string) error {

cmd.Env = env

cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}

if err := cmd.Start(); err != nil {
return err
Expand Down

0 comments on commit a4692ca

Please sign in to comment.