summaryrefslogtreecommitdiff
path: root/linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'linux.go')
-rw-r--r--linux.go22
1 files changed, 9 insertions, 13 deletions
diff --git a/linux.go b/linux.go
index 5a602a1..ee24420 100644
--- a/linux.go
+++ b/linux.go
@@ -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")