Skip to content

Commit

Permalink
Update test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gonyyi authored Dec 30, 2020
1 parent b201976 commit 1ef4cfc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 1ef4cfc

Please sign in to comment.