Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit f73d3a2

Browse files
authored
removed os.Kill from caught signals in pingpoing, dm_pingpong and airhorn (bwmarrin#1281)
1 parent 128f34b commit f73d3a2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/airhorn/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func main() {
6666
// Wait here until CTRL-C or other term signal is received.
6767
fmt.Println("Airhorn is now running. Press CTRL-C to exit.")
6868
sc := make(chan os.Signal, 1)
69-
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
69+
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
7070
<-sc
7171

7272
// Cleanly close down the Discord session.

examples/dm_pingpong/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func main() {
4545
// Wait here until CTRL-C or other term signal is received.
4646
fmt.Println("Bot is now running. Press CTRL-C to exit.")
4747
sc := make(chan os.Signal, 1)
48-
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
48+
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
4949
<-sc
5050

5151
// Cleanly close down the Discord session.

examples/pingpong/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func main() {
4646
// Wait here until CTRL-C or other term signal is received.
4747
fmt.Println("Bot is now running. Press CTRL-C to exit.")
4848
sc := make(chan os.Signal, 1)
49-
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
49+
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
5050
<-sc
5151

5252
// Cleanly close down the Discord session.

0 commit comments

Comments
 (0)