Added specific signal catch only for SIGQUIT

loop_loop_execution
Paulo Truta 2021-02-12 18:11:36 +00:00
parent ad330274db
commit 28cb163f6d
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import (
"os"
"os/signal"
"time"
"syscall"
"github.com/edgebox-iot/sysctl/internal/diagnostics"
)
@ -31,7 +32,7 @@ func main() {
sigs := make(chan os.Signal, 1)
// catch all signals since not explicitly listing
signal.Notify(sigs)
signal.Notify(sigs, syscall.SIGQUIT)
// Cathing specific signals can be done with:
//signal.Notify(sigs,syscall.SIGQUIT)