internal/version: ignore signals intended for the child process Since the underlying toolchain is run as a child process (and not exec'd), signals that are sent to this process (for example, an interrupt sent by a shell) will be handled by both the parent and the child. This poses a problem for signals like SIGQUIT, where both processes' runtimes attempt to write out information to the same output. Before running the final command, start a signal handler that will ignore a signal sent to the parent, emulating the behavior of go run. This code is a modified version of cmd/go/internal/base. Fixes golang/go#36976. Change-Id: I29aa699dc059fd448aa9478f729ed8d90379616b Reviewed-on: https://go-review.googlesource.com/c/dl/+/217765 Trust: Emmanuel Odeke <emmanuel@orijtech.com> Trust: Dmitri Shuralyov <dmitshur@golang.org> Trust: Filippo Valsorda <filippo@golang.org> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
This repository holds the Go wrapper programs that run specific versions of Go, such as go get golang.org/dl/go1.10.3 and go get golang.org/dl/gotip.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “dl:” in the subject line, so it is easy to find.