diff --git a/cmd/test.go b/cmd/test.go index 2c717c5..701fd98 100644 --- a/cmd/test.go +++ b/cmd/test.go @@ -9,17 +9,14 @@ import ( ) func main() { - graceful.New(func() int { + graceful.New(func() { switch graceful.SignalReceived { case syscall.SIGKILL: println("Received SIGKILL") - return 0 case syscall.SIGINT: println("Received SIGINT") - return 0 default: println("Received Others") - return 1 } return 0 })