Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Command.WaitDelay to avoid Command.Wait blocking on stdin/out/err
Add WaitDelay to ensure cmd.Wait() returns in a reasonable timeframe if the goroutines that cmd.Start() uses to copy Stdin/Stdout/Stderr are blocked when copying due to a sub-subprocess holding onto them. Read more details in these issues: - golang/go#23019 - golang/go#50436 This isn't the original intent of kill-delay, but it seems reasonable to reuse it in this context. Fixes canonical#149
- Loading branch information