]> Cypherpunks repositories - gostls13.git/commit
cmd/go: pass signals forward during "go tool"
authorRuss Cox <rsc@golang.org>
Thu, 7 Jan 2021 16:21:37 +0000 (11:21 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 8 Jan 2021 17:13:48 +0000 (17:13 +0000)
commit6728118e0ae2658e758a64fe86e2e1a3aa55268c
tree7764b082fa7d2af4391b6a0fdd3b1767b6912d92
parente65c543f3c34f4a505c37ebc3c2b608bc8ae83ec
cmd/go: pass signals forward during "go tool"

This way, if a SIGINT is sent to the go command,
it is forwarded on to the underlying tool.

Otherwise trying to use os.Process.Signal to kill
"go tool compile" only kills the "go tool" not the "compile".

Change-Id: Iac7cd4f06096469f5e76164df813a379c0da3822
Reviewed-on: https://go-review.googlesource.com/c/go/+/282312
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/go/internal/tool/tool.go