mirror of https://bitbucket.org/ausocean/av.git
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:
parent
da9ed6d689
commit
1621dc709b
|
@ -86,7 +86,7 @@ func (n *watchdogNotifier) notify() {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL)
|
||||||
sig := <-sigs
|
sig := <-sigs
|
||||||
n.log.Warning("received termination signal, calling termination callback", "signal", sig.String())
|
n.log.Warning("received termination signal, calling termination callback", "signal", sig.String())
|
||||||
n.termCallback()
|
n.termCallback()
|
||||||
|
|
Loading…
Reference in New Issue