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"
|
|
|
|
|
2021-08-09 00:35:28 -05:00
|
|
|
// import "git.wit.org/wit/shell"
|
2019-06-06 12:53:00 -05:00
|
|
|
// 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)
|
|
|
|
}
|