Move signal to pkg

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
This commit is contained in:
Guillaume J. Charmes 2014-03-10 13:38:17 -07:00
parent fcd7612643
commit db6b150d99
4 changed files with 184 additions and 0 deletions

11
signal/signal.go Normal file
View file

@ -0,0 +1,11 @@
package signal
import (
"os"
"os/signal"
)
func StopCatch(sigc chan os.Signal) {
signal.Stop(sigc)
close(sigc)
}