]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: fix deadlock when compilation command fails
authorRuss Cox <rsc@golang.org>
Sat, 17 Jan 2015 03:12:41 +0000 (22:12 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 19 Jan 2015 16:27:13 +0000 (16:27 +0000)
commit73a10bfcbb46e7b07fe0e0582b23b27d74a09ae6
treeaafe675a2297d1e3fc299bc032e113badb78f9a5
parent3965d7508ef6387c1e524e812fda6ccef221723b
cmd/dist: fix deadlock when compilation command fails

Can't use bgwait, both because it can only be used from
one goroutine at a time and because it ends up queued
behind all the other pending commands. Use a separate
signaling mechanism so that we can notice we're dying
sooner.

Change-Id: I8652bfa2f9bb5725fa5968d2dd6a745869d01c01
Reviewed-on: https://go-review.googlesource.com/3010
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/util.go