Skip to content

Commit

Permalink
Document errno choice
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Apr 30, 2024
1 parent 63c2f1a commit 77626c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/launcher/svc_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ func (w *winSvc) Execute(args []string, r <-chan svc.ChangeRequest, changes chan
)
// We don't want to tell the service manager that we've stopped on purpose,
// so that the service manager will restart launcher correctly.
// We use this error code largely because the windows/svc code also uses it
// and it seems semantically correct enough; it doesn't appear to matter to us
// what the code is.
return false, uint32(windows.ERROR_EXCEPTION_IN_SERVICE)
}
}
Expand Down

0 comments on commit 77626c8

Please sign in to comment.