From 0b273e18570cb628e643ab2cba8e37fc4664a8db Mon Sep 17 00:00:00 2001 From: oliverpool Date: Wed, 6 Apr 2022 08:28:53 +0200 Subject: [PATCH] cmd/tailscale: drop special exit code 125 for gokrazy No needed since gokrazy doesn't restart successful processes anymore: https://github.com/gokrazy/gokrazy/pull/127 Signed-off-by: Olivier Charvin --- cmd/tailscale/cli/cli.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cmd/tailscale/cli/cli.go b/cmd/tailscale/cli/cli.go index 0b5995c7d..59faee7c7 100644 --- a/cmd/tailscale/cli/cli.go +++ b/cmd/tailscale/cli/cli.go @@ -129,18 +129,6 @@ func Run(args []string) (err error) { if len(args) == 1 && (args[0] == "-V" || args[0] == "--version") { args = []string{"version"} } - if runtime.GOOS == "linux" && distro.Get() == distro.Gokrazy && - os.Getenv("GOKRAZY_FIRST_START") == "1" { - defer func() { - // Exit with 125 otherwise the CLI binary is restarted - // forever in a loop by the Gokrazy process supervisor. - // See https://gokrazy.org/userguide/process-interface/ - if err != nil { - log.Println(err) - } - os.Exit(125) - }() - } var warnOnce sync.Once tailscale.SetVersionMismatchHandler(func(clientVer, serverVer string) {