try ignoring this on windows. yes, I know this isn't going to work
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
1dfe394073
commit
dc4d1549b7
|
@ -298,6 +298,9 @@ func parseConfig() {
|
|||
errChan <- fmt.Errorf("mainMouseClick() got b = nil")
|
||||
errChan <- "hello"
|
||||
|
||||
// my pid (cross platform) p, err := os.FindProcess(os.Getpid())
|
||||
// send signal (cross platform) return p.Signal(syscall.SIGTERM)
|
||||
|
||||
// for {}
|
||||
// os.Exit(0)
|
||||
}
|
||||
|
|
7
main.go
7
main.go
|
@ -5,7 +5,7 @@ import "os"
|
|||
import "time"
|
||||
import "reflect"
|
||||
import "os/signal"
|
||||
import "syscall"
|
||||
// import "os/syscall"
|
||||
|
||||
// this is the king of dns libraries
|
||||
import "github.com/miekg/dns"
|
||||
|
@ -187,7 +187,10 @@ func init() {
|
|||
shell.InitCallback(handleShell) // asks for all the shell errors to be sent here
|
||||
|
||||
sigChan = make(chan os.Signal, 3)
|
||||
signal.Notify(sigChan, syscall.SIGUSR1)
|
||||
if runtime.GOOS != "windows" {
|
||||
log.Println("loadConfigFile() OS: Windows")
|
||||
signal.Notify(sigChan, os.Syscall.SIGUSR1)
|
||||
}
|
||||
}
|
||||
|
||||
// get's sent the return values and errors from git.wit.com/wit/shell/
|
||||
|
|
Loading…
Reference in New Issue