We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2844580 commit 68df068Copy full SHA for 68df068
command.go
@@ -153,7 +153,6 @@ func (c *Command) Execute() error {
153
}
154
155
done := make(chan error, 1)
156
- defer close(done)
157
quit := make(chan bool, 1)
158
defer close(quit)
159
@@ -175,6 +174,7 @@ func (c *Command) Execute() error {
175
174
c.exitCode = 0
176
case <-timeoutChan:
177
quit <- true
+ close(done)
178
if err := cmd.Process.Kill(); err != nil {
179
return fmt.Errorf("Timeout occurred and can not kill process with pid %v", cmd.Process.Pid)
180
0 commit comments