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

parent accept can't return #1

Closed
wllenyj opened this issue Dec 14, 2017 · 6 comments
Closed

parent accept can't return #1

wllenyj opened this issue Dec 14, 2017 · 6 comments
Labels

Comments

@wllenyj
Copy link
Owner

wllenyj commented Dec 14, 2017

运行example/http/test_http.sh
Centos 6.2
父进程start子进程后,收到子进程发送的terminated消息,在消息处理函数内close(listener)。这时子进程又收到shell脚本引起的terminated消息,子进程正常退出。但父进程的accept不能返回,无法退出。

@wllenyj
Copy link
Owner Author

wllenyj commented Dec 14, 2017

如果使用gdb attach 上加断点后continue,accept又可以返回了。但程序还是无法退出,又阻塞在了waitGroup.Wait上,但是Counter已经是0了,感觉像是go的调度器坏了。

@wllenyj
Copy link
Owner Author

wllenyj commented Dec 14, 2017

@wllenyj
Copy link
Owner Author

wllenyj commented Dec 14, 2017

@wllenyj wllenyj closed this as completed Dec 14, 2017
@wllenyj wllenyj added the bug label Dec 14, 2017
@wllenyj
Copy link
Owner Author

wllenyj commented Dec 14, 2017

#6ea06a4

@wllenyj
Copy link
Owner Author

wllenyj commented May 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant