Skip to content

Commit

Permalink
Use the term exit status to be consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxdude committed Feb 17, 2022
1 parent 45c033b commit 6ebe9e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var (
type InitServiceManager interface {
// Wait initiates the blocking wait of the init process. The
// call doesn't return until all the services have terminated.
// The return value indicates the final exit status code to be used.
// The return value indicates the final exit status to be used.
Wait() int
}

Expand Down Expand Up @@ -134,9 +134,9 @@ func NewServiceManager(log zzzlogi.Logger, services ...*ServiceInfo) (InitServic
// Wait performs a blocking wait for all the launched services to terminate.
// Once the first launched service terminates, the service manager initiates
// the shut down sequence terminating all remaining services and returns
// the exit status code based on single service mode or multi service mode.
// In single service mode, the exit status code is the same as that of the
// service which exited. In multi service mode, the exit status code is the
// the exit status based on single service mode or multi service mode.
// In single service mode, the exit status is the same as that of the
// service which exited. In multi service mode, the exit status is the
// same as the first service which exited if non-zero, 77 otherwise.
func (s *serviceManagerImpl) Wait() int {
// Wait for the first service termination.
Expand Down

0 comments on commit 6ebe9e4

Please sign in to comment.