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

doesn't work on window #1

Open
honwhy opened this issue Aug 24, 2016 · 3 comments
Open

doesn't work on window #1

honwhy opened this issue Aug 24, 2016 · 3 comments

Comments

@honwhy
Copy link

honwhy commented Aug 24, 2016

λ go get github.com/shanzi/wu
# github.com/shanzi/wu/command
gocode\src\github.com\shanzi\wu\command\command.go:67: unknown syscall.SysProcAttr field 'Setpgid' in struct literal
gocode\src\github.com\shanzi\wu\command\command.go:133: undefined: syscall.Getpgid
gocode\src\github.com\shanzi\wu\command\command.go:135: undefined: syscall.Kill

env:

λ go version
go version go1.7rc6 windows/amd64
@shanzi
Copy link
Owner

shanzi commented Aug 24, 2016

Yeah, currently we do not support Windows as there is no wrapped method to kill a process under golang and thus we have to work with native Windows API.

@honwhy
Copy link
Author

honwhy commented Aug 24, 2016

a wrapped method example,
http://blog.csdn.net/fyxichen/article/details/51857864

@shanzi
Copy link
Owner

shanzi commented Aug 26, 2016

@honwhy Cool! I will try to put that in when I'm free. Or could you give me a PR for it if possible? :p

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

2 participants