Skip to content

Commit

Permalink
util/winutil: add some missing docs to restartmgr errors
Browse files Browse the repository at this point in the history
Just a quick #cleanup.

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
  • Loading branch information
dblohm7 committed Jan 5, 2024
1 parent 46bdbb3 commit aed2cfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions util/winutil/restartmgr_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)

Expand Down

0 comments on commit aed2cfe

Please sign in to comment.