From aed2cfec4ef02b4a69f3ba1d062546c6e3dfb21b Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Fri, 5 Jan 2024 11:06:21 -0700 Subject: [PATCH] util/winutil: add some missing docs to restartmgr errors Just a quick #cleanup. Signed-off-by: Aaron Klotz --- util/winutil/restartmgr_windows.go | 5 +++++ 1 file changed, 5 insertions(+) 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") )