mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
update documentation, and a minor change to the signal handler in yggdrasil.go
This commit is contained in:
parent
742a755bb7
commit
6b2937bcd0
2 changed files with 7 additions and 3 deletions
|
@ -277,7 +277,7 @@ func main() {
|
|||
}
|
||||
// Catch interrupt to exit gracefully
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c, os.Interrupt)
|
||||
signal.Notify(c, os.Interrupt, os.Kill)
|
||||
<-c
|
||||
logger.Println("Stopping...")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue