commit | 5564b1ea1f85590d0b4f9dceb1e752fd6f182f84 | [log] [tgz] |
---|---|---|
author | zikaeroh <zikaeroh@gmail.com> | Wed Feb 05 00:08:27 2020 -0800 |
committer | Filippo Valsorda <filippo@golang.org> | Thu Mar 18 19:08:03 2021 +0000 |
tree | b1cfef3376703baf7265ecae10477ee76c5e7077 | |
parent | 3c153da08ce00e975a6c64a0165ba8ab96081b22 [diff] |
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.