]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/doc: ignore SIGINT and SIGQUIT
authorMichael Matloob <matloob@golang.org>
Wed, 21 May 2025 16:20:59 +0000 (12:20 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 21 May 2025 20:40:29 +0000 (13:40 -0700)
commit50484d3b4e691d361d009d5e4a07c182b35471a0
treeb8e359cf81a51af68d3e6f2b421cf0e8e8516a07
parentb6e251b264869fac4ddc158fb9a5c8d5b4ac086f
cmd/go/internal/doc: ignore SIGINT and SIGQUIT

Just like we do in cmd/doc when we start pkgsite, ignore SIGINT (and
SIGQUIT on unix) when we start cmd/doc so that it's handled by cmd/doc
(if pkgsite is not started, and before it is started) or pkgsite, if it
is started. Also exit with the exit status of the command, rather than
using base.Errorf so that we don't print an extra error message to the
terminal.

For #68106

Change-Id: If968e88b95031761432d13dc47c5febe3391945d
Reviewed-on: https://go-review.googlesource.com/c/go/+/675076
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Auto-Submit: Michael Matloob <matloob@google.com>
src/cmd/go/internal/base/base.go
src/cmd/go/internal/doc/doc.go