|
|
|
@ -10,6 +10,7 @@ import (
|
|
|
|
|
"os" |
|
|
|
|
"os/signal" |
|
|
|
|
"sync" |
|
|
|
|
"syscall" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"forge.chapril.org/mls-361/application" |
|
|
|
@ -67,7 +68,7 @@ func waitEnd(server components.Server) *sync.WaitGroup {
|
|
|
|
|
sigEnd := make(chan os.Signal, 1) |
|
|
|
|
defer close(sigEnd) |
|
|
|
|
|
|
|
|
|
signal.Notify(sigEnd, os.Interrupt) |
|
|
|
|
signal.Notify(sigEnd, os.Interrupt, syscall.SIGABRT, syscall.SIGQUIT, syscall.SIGTERM) |
|
|
|
|
|
|
|
|
|
<-sigEnd |
|
|
|
|
}() |
|
|
|
|