Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: possible goroutine leak in exec
If timeout happens and ShouldWait is false (default) cmd.Wait() goroutine will stack forever on sending to done channel. The will be no receiver from done. Making the channel buffered lets the goroutine exit. Signed-off-by: Anton Tiurin <[email protected]>
- Loading branch information