Skip to content

Commit

Permalink
Return 0 on SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
wcmjunior committed Sep 11, 2024
1 parent 783d9a8 commit 0a206c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func initSignals(s *Supervisor) {
sig := <-sigs
log.WithFields(log.Fields{"signal": sig}).Info("receive a signal to stop all process & exit")
s.procMgr.StopAllProcesses()
os.Exit(-1)
os.Exit(0)
}()

}
Expand Down

0 comments on commit 0a206c7

Please sign in to comment.