Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall.SIGUSR1,syscall.SIGUSR2,syscall.SIGTSTP,syscall.Kill makes endless unusable on windows #30

Open
bruceauyeung opened this issue Jun 1, 2016 · 4 comments

Comments

@bruceauyeung
Copy link

i found endless uses syscall.SIGUSR1,syscall.SIGUSR2,syscall.SIGTSTP,syscall.Kill, these things are not defined on Go 1.6.2 on windows. so codes using endless can not even be compiled.
endless: 2cdc20a

would you please fix this?

@ghost
Copy link

ghost commented Jul 5, 2016

Windows does not provide sophisticated process controls or signalling; the best endless would be able to achieve on Windows is hard restarts.

@JamieSinn
Copy link

JamieSinn commented Feb 23, 2017

This is problematic for even developing on windows. I export to linux, but developing should not be affected.

@zlgale
Copy link

zlgale commented Mar 6, 2017

..\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 。

@johnw2018
Copy link

johnw2018 commented Nov 12, 2018

$ 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

r0ckysec added a commit to r0ckysec/go that referenced this issue Mar 8, 2022
xxx.go:64:3: undefined: syscall.SIGUSR1
xxx.go:65:3: undefined: syscall.SIGUSR2
xxx.go:68:3: undefined: syscall.SIGTSTP
xxx.go:111:5: undefined: syscall.SIGUSR1
xxx.go:112:5: undefined: syscall.SIGUSR2
xxx.go:115:5: undefined: syscall.SIGTSTP
xxx.go:119:5: undefined: syscall.SIGUSR1
xxx.go:120:5: undefined: syscall.SIGUSR2
xxx.go:123:5: undefined: syscall.SIGTSTP
xxx.go:224:3: undefined: syscall.Kill
xxx.go:224:3: too many errors

after fixing, it can be compiled normally

The items in question are: fvbock/endless#30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants