commit | 698603203d624fd97551051fc6686b8908d9ad7d | [log] [tgz] |
---|---|---|
author | Robin Thellend <rthellend@google.com> | Fri Apr 08 16:52:37 2016 -0700 |
committer | Robin Thellend <rthellend@google.com> | Fri Apr 08 16:53:32 2016 -0700 |
tree | 1e867d5e65a5d30324f44bb40924e1c5f5a43662 | |
parent | 1f0095128769f11d46bda5be337eca26159538bd [diff] |
gosh: Fix concurrency bug Change-Id: Ifbf5e1fdae3c4f16cc6282714e3fd1d4262711ef
diff --git a/gosh/shell.go b/gosh/shell.go index 9d6dd1d..a1cee3a 100644 --- a/gosh/shell.go +++ b/gosh/shell.go
@@ -482,10 +482,10 @@ continue } wg.Add(1) - go func() { + go func(cmd *Cmd) { defer wg.Done() - c.cleanupProcessGroup() - }() + cmd.cleanupProcessGroup() + }(c) } wg.Wait() }