aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-03-14 14:25:56 -0400
committerRuss Cox <rsc@golang.org>2023-04-18 13:19:19 +0000
commit14ab998f95b53baa6e336c598b0f34e319cc9717 (patch)
tree153dfe7575c56668f0668441442cf0a581269778 /src/os/exec
parent44e51e60acb8a1ff6ba10d698615fde98b2b28b0 (diff)
downloadgo-14ab998f95b53baa6e336c598b0f34e319cc9717.tar.xz
cmd/go: add check for unknown godebug setting
A //go:debug line mentioning an unknown or retired setting should be diagnosed as making the program invalid. Do that. We agreed on this in the proposal but I forgot to implement it. Change-Id: Ie69072a1682d4eeb6866c02adbbb426f608567c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/476280 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/os/exec')
-rw-r--r--src/os/exec/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go
index 2f4bdffe9c..138be29ecf 100644
--- a/src/os/exec/exec.go
+++ b/src/os/exec/exec.go
@@ -348,7 +348,7 @@ type ctxResult struct {
timer *time.Timer
}
-var execwait = godebug.New("execwait")
+var execwait = godebug.New("#execwait")
var execerrdot = godebug.New("execerrdot")
// Command returns the Cmd struct to execute the named program with