Skip to content

Commit

Permalink
fix(unix): unix CommandContext
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Sep 22, 2023
1 parent 35e7e62 commit 191ee86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pty_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (p *UnixPty) Command(name string, args ...string) *Cmd {
func (p *UnixPty) CommandContext(ctx context.Context, name string, args ...string) *Cmd {
cmd := exec.CommandContext(ctx, name, args...)
c := p.Command(name, args...)
c.sys = cmd
c.ctx = ctx
c.Cancel = func() error {
return cmd.Cancel()
Expand Down

0 comments on commit 191ee86

Please sign in to comment.