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

single strategy error in mac #32

Open
ColderLee opened this issue Jan 4, 2019 · 1 comment
Open

single strategy error in mac #32

ColderLee opened this issue Jan 4, 2019 · 1 comment

Comments

@ColderLee
Copy link

In Single strategy,setEnvs error in mac.

error message

panic: reflect: call of reflect.Value.Int on zero Value

goroutine 1 [running]:
reflect.Value.Int(...)
	/usr/local/go/src/reflect/value.go:961

solution

Replace with below code will solve this problems.

v := reflect.ValueOf(l).Elem().FieldByName("fd").Elem().FieldByName("pfd")
fd = uintptr(v.FieldByName("Sysfd").Int())
@brandur
Copy link

brandur commented May 9, 2019

Nice fix! I just ran into the same problem and came here to see if it was a general one.

Given the project seems to be broken out of the box for a common OS, does that mean it's effectively unmaintained/dead? I ask because I'm trying to decide on graceful restart library, and would love to know about what the accepted state of the art for this kind of thing is these days, if anyone has ideas.

(https://github.com/gobwas/graceful looks interesting, but has a more complex interface, and also hasn't been committed to in a while.)

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