blob: 9550978fe210ee74a2c44fecc17c81b188203600 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//+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
}
|