2019-06-06 12:53:00 -05:00
|
|
|
// +build linux,go1.7
|
|
|
|
|
2019-06-06 12:57:57 -05:00
|
|
|
// put stuff in here that you only want compiled under linux
|
|
|
|
|
2019-06-06 12:53:00 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "log"
|
|
|
|
import "os"
|
|
|
|
import "os/signal"
|
|
|
|
import "syscall"
|
|
|
|
|
|
|
|
// import "runtime"
|
|
|
|
// import "time"
|
|
|
|
// import "reflect"
|
|
|
|
|
|
|
|
// import "git.wit.com/wit/shell"
|
|
|
|
// import "github.com/davecgh/go-spew/spew"
|
|
|
|
|
2019-06-06 12:57:57 -05:00
|
|
|
func handleSignal(err interface{}, ret int) {
|
|
|
|
log.Println("handleSignal() only should be compiled on linux")
|
2019-06-06 12:53:00 -05:00
|
|
|
sigChan = make(chan os.Signal, 3)
|
|
|
|
signal.Notify(sigChan, syscall.SIGUSR1)
|
|
|
|
}
|