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:
parent
1d6c05b402
commit
788cc2621e
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue