From 463609a403b3b4a323daff26b1bd9df41e736cf3 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Wed, 14 Oct 2015 03:36:23 +0300 Subject: [PATCH] Do not subscribe to SIGTERM --- example/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/main.go b/example/main.go index edbd566..6b4e5ae 100644 --- a/example/main.go +++ b/example/main.go @@ -6,7 +6,6 @@ import ( "log" "os" "os/signal" - "syscall" "github.com/localhots/uberdaemon" "github.com/localhots/uberdaemon/example/daemons" @@ -26,7 +25,7 @@ func main() { defer uberd.Stop() sig := make(chan os.Signal) - signal.Notify(sig, os.Interrupt, syscall.SIGTERM) + signal.Notify(sig, os.Interrupt) for s := range sig { if s == os.Interrupt {