mirror of
https://github.com/shouptech/tempgopher.git
synced 2026-02-03 16:49:42 +00:00
Add a comment
This commit is contained in:
parent
19c7c75c15
commit
421bd7277c
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
|
@ -39,6 +39,7 @@ func main() {
|
||||||
// done is used to signal the web frontend to stop
|
// done is used to signal the web frontend to stop
|
||||||
done := make(chan bool)
|
done := make(chan bool)
|
||||||
|
|
||||||
|
// Catch SIGTERM and SIGINT
|
||||||
sig := make(chan os.Signal)
|
sig := make(chan os.Signal)
|
||||||
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
|
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
|
||||||
signal.Notify(sig, os.Interrupt, syscall.SIGINT)
|
signal.Notify(sig, os.Interrupt, syscall.SIGINT)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue