1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

main.go: os.Interrupt can be changed to syscall.SIGINT

This commit is contained in:
Henrik Hautakoski 2023-01-20 12:15:24 +01:00
parent 1d6c05b402
commit 788cc2621e

View file

@ -107,7 +107,7 @@ func run() {
signals := make(chan os.Signal, 1)
// Register signal channel to receive signals from the os.
signal.Notify(signals, os.Interrupt, syscall.SIGTERM)
signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)
// Wait for interrupt
sig := <-signals