mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-10 08:40:29 +00:00
18 lines
271 B
Go
18 lines
271 B
Go
|
//+build !appengine
|
||
|
|
||
|
package graceful
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/signal"
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
func signalNotify(interrupt chan<- os.Signal) {
|
||
|
signal.Notify(interrupt, syscall.SIGINT, syscall.SIGTERM)
|
||
|
}
|
||
|
|
||
|
func sendSignalInt(interrupt chan<- os.Signal) {
|
||
|
interrupt <- syscall.SIGINT
|
||
|
}
|