Open bruceauyeung opened 8 years ago
Windows does not provide sophisticated process controls or signalling; the best endless would be able to achieve on Windows is hard restarts.
This is problematic for even developing on windows. I export to linux, but developing should not be affected.
..\vendor\github.com\fvbock\endless\endless.go:64: undefined: syscall.SIGUSR1 ..\vendor\github.com\fvbock\endless\endless.go:65: undefined: syscall.SIGUSR2 ..\vendor\github.com\fvbock\endless\endless.go:68: undefined: syscall.SIGTSTP ..\vendor\github.com\fvbock\endless\endless.go:111: undefined: syscall.SIGUSR1 ..\vendor\github.com\fvbock\endless\endless.go:112: undefined: syscall.SIGUSR2 ..\vendor\github.com\fvbock\endless\endless.go:115: undefined: syscall.SIGTSTP ..\vendor\github.com\fvbock\endless\endless.go:119: undefined: syscall.SIGUSR1 ..\vendor\github.com\fvbock\endless\endless.go:120: undefined: syscall.SIGUSR2 ..\vendor\github.com\fvbock\endless\endless.go:123: undefined: syscall.SIGTSTP ..\vendor\github.com\fvbock\endless\endless.go:224: undefined: syscall.Kill ..\vendor\github.com\fvbock\endless\endless.go:224: too many errors
windows 64 - bit operating system, Gogland IDEA, Go SDK1.8 。
$ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o demo_win main.go # demo/vendor/github.com/fvbock/endless vendor/github.com/fvbock/endless/endless.go:64:3: undefined: syscall.SIGUSR1 vendor/github.com/fvbock/endless/endless.go:65:3: undefined: syscall.SIGUSR2 vendor/github.com/fvbock/endless/endless.go:68:3: undefined: syscall.SIGTSTP vendor/github.com/fvbock/endless/endless.go:111:5: undefined: syscall.SIGUSR1 vendor/github.com/fvbock/endless/endless.go:112:5: undefined: syscall.SIGUSR2 vendor/github.com/fvbock/endless/endless.go:115:5: undefined: syscall.SIGTSTP vendor/github.com/fvbock/endless/endless.go:119:5: undefined: syscall.SIGUSR1 vendor/github.com/fvbock/endless/endless.go:120:5: undefined: syscall.SIGUSR2 vendor/github.com/fvbock/endless/endless.go:123:5: undefined: syscall.SIGTSTP vendor/github.com/fvbock/endless/endless.go:224:3: undefined: syscall.Kill vendor/github.com/fvbock/endless/endless.go:224:3: too many errors
i found
endless
usessyscall.SIGUSR1
,syscall.SIGUSR2
,syscall.SIGTSTP
,syscall.Kill
, these things are not defined on Go 1.6.2 on windows. so codes usingendless
can not even be compiled. endless: 2cdc20a776897c0f406853c048c33e2c1a9f0ebfwould you please fix this?