-
Notifications
You must be signed in to change notification settings - Fork 133
Add basic windows support #24
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
Conversation
Very nice, thank you. This kind of minimal change gives me more confidence that existing functionality won't break. I'm not familiar with Windows, but #22 handles process termination like this: p, err := os.FindProcess(-c.status.PID)
if err != nil {
return err
}
return p.Signal(syscall.SIGTERM) That seems more native Go than |
Hi there, thanks to review my PR at #22 , I think it's better to add the PLATFORM CI such as goreleaser and gox to check if |
I can test this codepath when I get my hands on a windows machine. Otherwise, as far as taskkill's doc goes, |
What else needs to happen to get this merged? Anything I can do? |
Sticking point is Instead, a native Go solution like #22 is preferable. I presume that's same as |
"TASKKILL" is the most credible method to kill the process after trying any possible methods. |
gopsutil |
Thanks @hfrappier, I'll merge this and switch the Windows implementation to use |
May I ask that why not use ( As Go doc mentioned , Windows will return an error if we have some unexpected case ? ) The |
No description provided.