Skip to content

Commit

Permalink
clair: remove os.Exit call on clean shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
hdonnay committed Mar 5, 2020
1 parent 10d2f54 commit fb28e56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/clair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func main() {
tctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
server.Shutdown(tctx)
os.Exit(0)
case <-ctx.Done():
// main cancel func called indicating error initializing
logger.Fatal().Msgf("initialization of clair failed. view log entries for details")
Expand Down

0 comments on commit fb28e56

Please sign in to comment.