Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/configstore: do not require console for subprocess in windows
The configstore downloads the latest telemetry config using the `go mod download` command. The uploader process that calls this configstore is likely a daemonized process (see x/telemetry/start_windows.go) and has no console attached. The console creation behavior when the parent is a console process without console is not clearly documented anywhere, but empirically we observed a new console (new window) is created for the subprocess. I am not sure if this is due to the system default configuration, or due to how go's os/exec is implemented on windows. Prevent the new console creation by explicitly setting the CREATE_NO_WINDOW attribute. https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags Manually tested. For golang/go#67660 Change-Id: Ia86ebafe3d4d7bcb63a7eaf9ce01c4eb32b43809 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/589061 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
- Loading branch information