vidforward: add SIGKILL to signal.Notify for term callback

Just for further redundancy, let's also call the termination
callback (which saves the manager state in our case) for SIGKILL.
This commit is contained in:
Saxon Nelson-Milton 2023-09-19 10:45:45 +00:00
parent da9ed6d689
commit 1621dc709b
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (n *watchdogNotifier) notify() {
go func() {
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL)
sig := <-sigs
n.log.Warning("received termination signal, calling termination callback", "signal", sig.String())
n.termCallback()