Skip to content

Commit

Permalink
🛑 cmd: force exit on second exit signal
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Dec 11, 2024
1 parent 6834aee commit cc46a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/swgp-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func main() {
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)
sig := <-sigCh
logger.Info("Received exit signal", slog.Any("signal", sig))
signal.Stop(sigCh)
cancel()
}()

Expand Down

0 comments on commit cc46a4b

Please sign in to comment.