moby/utils/signal.go
2013-10-29 14:29:01 -07:00

11 lines
118 B
Go

package utils
import (
"os"
"os/signal"
)
func StopCatch(sigc chan os.Signal) {
signal.Stop(sigc)
close(sigc)
}