mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
Merge pull request #1837 from ian-fox/master
Make a second sigint terminate kubescape immediately
This commit is contained in:
2
main.go
2
main.go
@@ -20,6 +20,8 @@ func main() {
|
||||
<-ctx.Done()
|
||||
// Perform cleanup or graceful shutdown here
|
||||
logger.L().StopError("Received interrupt signal, exiting...")
|
||||
// Clear the signal handler so that a second interrupt signal shuts down immediately
|
||||
stop()
|
||||
}()
|
||||
|
||||
if err := cmd.Execute(ctx); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user