diff options
Diffstat (limited to 'linux.go')
| -rw-r--r-- | linux.go | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -1,24 +1,20 @@ +//go:build linux && go1.7 // +build linux,go1.7 // put stuff in here that you only want compiled under linux package shell -import "log" -import "os" -import "os/signal" -import "syscall" +import ( + "log" + "os" + "os/signal" + "syscall" -// import "runtime" -// import "time" -// import "reflect" + "github.com/wercker/journalhook" +) -// import "go.wit.com/shell" -// import "github.com/davecgh/go-spew/spew" - -import "github.com/wercker/journalhook" - -var sigChan chan os.Signal +var sigChan chan os.Signal func handleSignal(err interface{}, ret int) { log.Println("handleSignal() only should be compiled on linux") |
