Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ func (c *Cmd) Done() <-chan struct{} {
}

// --------------------------------------------------------------------------
var CommandExecutor = exec.Command

func (c *Cmd) run() {
defer func() {
Expand All @@ -299,7 +300,7 @@ func (c *Cmd) run() {
// //////////////////////////////////////////////////////////////////////
// Setup command
// //////////////////////////////////////////////////////////////////////
cmd := exec.Command(c.Name, c.Args...)
cmd := CommandExecutor(c.Name, c.Args...)

// Platform-specific SysProcAttr management
setProcessGroupID(cmd)
Expand Down