summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAaron Klotz <aaron@tailscale.com>2024-01-05 11:06:21 -0700
committerAaron Klotz <aaron@tailscale.com>2024-01-05 10:12:08 -0800
commitaed2cfec4ef02b4a69f3ba1d062546c6e3dfb21b (patch)
treeea96b401e7d0b48f43425df5115b5b91f335ccda
parent46bdbb38780b854403fb54592b840d281dff9110 (diff)
downloadtailscale-aed2cfec4ef02b4a69f3ba1d062546c6e3dfb21b.tar.xz
tailscale-aed2cfec4ef02b4a69f3ba1d062546c6e3dfb21b.zip
util/winutil: add some missing docs to restartmgr errors
Just a quick #cleanup. Signed-off-by: Aaron Klotz <aaron@tailscale.com>
-rw-r--r--util/winutil/restartmgr_windows.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/winutil/restartmgr_windows.go b/util/winutil/restartmgr_windows.go
index 9fface9ca..981283dc8 100644
--- a/util/winutil/restartmgr_windows.go
+++ b/util/winutil/restartmgr_windows.go
@@ -23,7 +23,12 @@ import (
)
var (
+ // ErrDefunctProcess is returned by (*UniqueProcess).AsRestartableProcess
+ // when the process no longer exists.
ErrDefunctProcess = errors.New("process is defunct")
+ // ErrProcessNotRestartable is returned by (*UniqueProcess).AsRestartableProcess
+ // when the process has previously indicated that it must not be restarted
+ // during a patch/upgrade.
ErrProcessNotRestartable = errors.New("process is not restartable")
)